diff options
Diffstat (limited to 'source3/nsswitch/winbindd_glue.c')
-rw-r--r-- | source3/nsswitch/winbindd_glue.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/nsswitch/winbindd_glue.c b/source3/nsswitch/winbindd_glue.c index 3c789d5a7c..71b802b68d 100644 --- a/source3/nsswitch/winbindd_glue.c +++ b/source3/nsswitch/winbindd_glue.c @@ -42,6 +42,8 @@ BOOL wb_lsa_open_policy(char *server, BOOL sec_qos, uint32 des_access, pol->cli = (struct cli_state *)malloc(sizeof(struct cli_state)); pol->mem_ctx = talloc_init(); + ZERO_STRUCTP(pol->cli); + if (!pol->cli || !pol->mem_ctx) return False; @@ -183,6 +185,9 @@ BOOL wb_samr_connect(char *server, uint32 access_mask, CLI_POLICY_HND *pol) ZERO_STRUCTP(pol); pol->cli = (struct cli_state *)malloc(sizeof(struct cli_state)); + + ZERO_STRUCTP(pol->cli); + pol->mem_ctx = talloc_init(); if (!pol->cli || !pol->mem_ctx) |