summaryrefslogtreecommitdiff
path: root/nsswitch/libwbclient
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2010-01-29 11:54:33 +0100
committerKai Blin <kai@samba.org>2010-02-11 23:53:36 +0100
commitf9d041ccd358f6e91a44369c70eebcbf605de2cd (patch)
treef19099e8a329e469b6ef82a123c2dfe62a898657 /nsswitch/libwbclient
parent02a5078f1fe6285e4a0b6ad95a3aea1c5bb3e8cf (diff)
downloadsamba-f9d041ccd358f6e91a44369c70eebcbf605de2cd.tar.gz
samba-f9d041ccd358f6e91a44369c70eebcbf605de2cd.tar.bz2
samba-f9d041ccd358f6e91a44369c70eebcbf605de2cd.zip
libwbclient: Zero out context on initialization
This prevents a segfault when using wbcDebug without prior call to wbcSetDebug
Diffstat (limited to 'nsswitch/libwbclient')
-rw-r--r--nsswitch/libwbclient/wbc_async.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nsswitch/libwbclient/wbc_async.c b/nsswitch/libwbclient/wbc_async.c
index 181d5463e9..d1dd76d768 100644
--- a/nsswitch/libwbclient/wbc_async.c
+++ b/nsswitch/libwbclient/wbc_async.c
@@ -192,7 +192,7 @@ struct wb_context *wb_context_init(TALLOC_CTX *mem_ctx, const char* dir)
{
struct wb_context *result;
- result = talloc(mem_ctx, struct wb_context);
+ result = talloc_zero(mem_ctx, struct wb_context);
if (result == NULL) {
return NULL;
}