summaryrefslogtreecommitdiffstats
path: root/source/nsswitch
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
commit5d3ac0e39b2b3c60de7c1fe562e4da1f508a2884 (patch)
treee484aa72e447314f850ecf0aef2e3825b7480c06 /source/nsswitch
parent92298223b58ca9840badaf2a3f6481eed122fd27 (diff)
downloadsamba-5d3ac0e39b2b3c60de7c1fe562e4da1f508a2884.tar.gz
samba-5d3ac0e39b2b3c60de7c1fe562e4da1f508a2884.tar.xz
samba-5d3ac0e39b2b3c60de7c1fe562e4da1f508a2884.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.
Diffstat (limited to 'source/nsswitch')
-rw-r--r--source/nsswitch/winbindd_cm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/nsswitch/winbindd_cm.c b/source/nsswitch/winbindd_cm.c
index 45cded75fa4..90df5019d44 100644
--- a/source/nsswitch/winbindd_cm.c
+++ b/source/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)) {