summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2006-10-16 22:41:24 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:15:30 -0500
commite42f449fcc664852c92768450becc9e156bb488f (patch)
treeadfb2a10c1bd038b926500c851d9dfccd0c75dbd /source3
parent2c3aa76510aa4e79f887d9c5cb05b8d04187aa38 (diff)
downloadsamba-e42f449fcc664852c92768450becc9e156bb488f.tar.gz
samba-e42f449fcc664852c92768450becc9e156bb488f.tar.bz2
samba-e42f449fcc664852c92768450becc9e156bb488f.zip
r19348: Fix uninitialized dictionary handle, found by valgrind.
Guenther (This used to be commit 9621bb420a13e634badcc922c73c8bfb30aa6120)
Diffstat (limited to 'source3')
-rw-r--r--source3/nsswitch/pam_winbind.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/nsswitch/pam_winbind.c b/source3/nsswitch/pam_winbind.c
index c1e1bc5244..9d902e7e05 100644
--- a/source3/nsswitch/pam_winbind.c
+++ b/source3/nsswitch/pam_winbind.c
@@ -958,7 +958,7 @@ int pam_sm_authenticate(pam_handle_t *pamh, int flags,
const char *member = NULL;
const char *cctype = NULL;
int retval = PAM_AUTH_ERR;
- dictionary *d;
+ dictionary *d = NULL;
char *username_ret = NULL;
/* parse arguments */
@@ -1147,7 +1147,7 @@ PAM_EXTERN
int pam_sm_close_session(pam_handle_t *pamh, int flags,
int argc, const char **argv)
{
- dictionary *d;
+ dictionary *d = NULL;
int retval = PAM_SUCCESS;
/* parse arguments */
@@ -1241,7 +1241,7 @@ int pam_sm_chauthtok(pam_handle_t * pamh, int flags,
char *Announce;
int retry = 0;
- dictionary *d;
+ dictionary *d = NULL;
ctrl = _pam_parse(pamh, flags, argc, argv, &d);
if (ctrl == -1) {