diff options
author | Ken Raeburn <raeburn@mit.edu> | 2008-08-06 16:43:44 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@mit.edu> | 2008-08-06 16:43:44 +0000 |
commit | 5ad72747b589b66462ea71203ffe7a7a93b1e7d2 (patch) | |
tree | 9faa314714b405285ce1384a5d464a8725b3735b /src/lib/kadm5/clnt | |
parent | f1d1a653aaf1a9acde37b3d4e300e22566b41602 (diff) | |
download | krb5-5ad72747b589b66462ea71203ffe7a7a93b1e7d2.zip krb5-5ad72747b589b66462ea71203ffe7a7a93b1e7d2.tar.gz krb5-5ad72747b589b66462ea71203ffe7a7a93b1e7d2.tar.bz2 |
Fully initialize handle data on allocation
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20617 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/kadm5/clnt')
-rw-r--r-- | src/lib/kadm5/clnt/client_init.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/kadm5/clnt/client_init.c b/src/lib/kadm5/clnt/client_init.c index 67a99e7..fc67ab2 100644 --- a/src/lib/kadm5/clnt/client_init.c +++ b/src/lib/kadm5/clnt/client_init.c @@ -189,6 +189,7 @@ static kadm5_ret_t _kadm5_init_any(char *client_name, if (! (handle = malloc(sizeof(*handle)))) { return ENOMEM; } + memset(handle, 0, sizeof(*handle)); if (! (handle->lhandle = malloc(sizeof(*handle)))) { free(handle); return ENOMEM; @@ -200,6 +201,7 @@ static kadm5_ret_t _kadm5_init_any(char *client_name, handle->clnt = 0; handle->cache_name = 0; handle->destroy_cache = 0; + handle->context = 0; *handle->lhandle = *handle; handle->lhandle->api_version = KADM5_API_VERSION_2; handle->lhandle->struct_version = KADM5_STRUCT_VERSION; |