diff options
author | Jeremy Allison <jra@samba.org> | 2003-05-14 20:48:45 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-05-14 20:48:45 +0000 |
commit | 430d12876bd0df52f85fc5a905a106e6db38e4c0 (patch) | |
tree | 2c4e2b2deca89489e6c9ae62b9eaf5dc12c7f068 /source3/nsswitch | |
parent | 1124804f5d0ea5bdd0fbbb3bb09393ac65db4150 (diff) | |
download | samba-430d12876bd0df52f85fc5a905a106e6db38e4c0.tar.gz samba-430d12876bd0df52f85fc5a905a106e6db38e4c0.tar.bz2 samba-430d12876bd0df52f85fc5a905a106e6db38e4c0.zip |
Fix winbindd coredump. Remember to set a ** pointer to null before
searching and not finding otherwise we return a valid looking pointer
that was whatever crap was on the stack.
Jeremy.
(This used to be commit b6e78900175d4362f3a4d0216aa635931a0c11e9)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r-- | source3/nsswitch/winbindd_cm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/nsswitch/winbindd_cm.c b/source3/nsswitch/winbindd_cm.c index dbcfdcf88f..02fd15e069 100644 --- a/source3/nsswitch/winbindd_cm.c +++ b/source3/nsswitch/winbindd_cm.c @@ -450,6 +450,8 @@ static NTSTATUS get_connection_from_cache(const char *domain, const char *pipe_n struct winbindd_cm_conn *conn, conn_temp; NTSTATUS result; + *conn_out = NULL; + for (conn = cm_conns; conn; conn = conn->next) { if (strequal(conn->domain, domain) && strequal(conn->pipe_name, pipe_name)) { |