summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-05-14 20:48:48 +0000
committerJeremy Allison <jra@samba.org>2003-05-14 20:48:48 +0000
commit1904a21193a8c6cb1c293e26b3c2d0c9e80401a3 (patch)
tree7277040604c292be5f49ee23c1315700895c8178 /source3
parent57d3fa9d11da0dd6e3cfde34a405eae3c3bbfa9f (diff)
downloadsamba-1904a21193a8c6cb1c293e26b3c2d0c9e80401a3.tar.gz
samba-1904a21193a8c6cb1c293e26b3c2d0c9e80401a3.tar.bz2
samba-1904a21193a8c6cb1c293e26b3c2d0c9e80401a3.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 5d3ac0e39b2b3c60de7c1fe562e4da1f508a2884)
Diffstat (limited to 'source3')
-rw-r--r--source3/nsswitch/winbindd_cm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/nsswitch/winbindd_cm.c b/source3/nsswitch/winbindd_cm.c
index 45cded75fa..90df5019d4 100644
--- a/source3/nsswitch/winbindd_cm.c
+++ b/source3/nsswitch/winbindd_cm.c
@@ -448,6 +448,8 @@ static void find_cm_connection(const char *domain, const char *pipe_name,
{
struct winbindd_cm_conn *conn, conn_temp;
+ *conn_out = NULL;
+
for (conn = cm_conns; conn; conn = conn->next) {
if (strequal(conn->domain, domain) &&
strequal(conn->pipe_name, pipe_name)) {