summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-03-13 05:02:49 +0000
committerAndrew Tridgell <tridge@samba.org>2006-03-13 05:02:49 +0000
commit609c3d3b7907ef51a2e4830f303b8caedc4b3dd8 (patch)
tree69e321b5e31b004b17fbdc0ce2f410bccd807094
parent2f9af770e70e86df66d54cb97c2f494bbcb27d4f (diff)
downloadsamba-609c3d3b7907ef51a2e4830f303b8caedc4b3dd8.tar.gz
samba-609c3d3b7907ef51a2e4830f303b8caedc4b3dd8.tar.xz
samba-609c3d3b7907ef51a2e4830f303b8caedc4b3dd8.zip
r14297: make sure we can go through the loop for than once
-rw-r--r--source/libcli/dgram/mailslot.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/libcli/dgram/mailslot.c b/source/libcli/dgram/mailslot.c
index 33bca166ce9..467289bcee3 100644
--- a/source/libcli/dgram/mailslot.c
+++ b/source/libcli/dgram/mailslot.c
@@ -137,7 +137,9 @@ struct dgram_mailslot_handler *dgram_mailslot_temp(struct nbt_dgram_socket *dgms
}
dgmslot = dgram_mailslot_listen(dgmsock, name, handler, private);
talloc_free(name);
- return dgmslot;
+ if (dgmslot != NULL) {
+ return dgmslot;
+ }
}
DEBUG(2,("Unable to create temporary mailslot from %s\n", mailslot_name));
return NULL;