diff options
author | Andrew Tridgell <tridge@samba.org> | 2006-03-13 05:02:49 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:57:09 -0500 |
commit | 3ea60662fd687124483cad2f56f787c3b3d73f22 (patch) | |
tree | 0cc6957919ffd6908bd86a1d18b709a9a6592840 | |
parent | 15ec1f8f00500e8d4a382371c21af4141a75772e (diff) | |
download | samba-3ea60662fd687124483cad2f56f787c3b3d73f22.tar.gz samba-3ea60662fd687124483cad2f56f787c3b3d73f22.tar.bz2 samba-3ea60662fd687124483cad2f56f787c3b3d73f22.zip |
r14297: make sure we can go through the loop for than once
(This used to be commit 6a84940bd3f310344641474dac984b262413943b)
-rw-r--r-- | source4/libcli/dgram/mailslot.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/libcli/dgram/mailslot.c b/source4/libcli/dgram/mailslot.c index 33bca166ce..467289bcee 100644 --- a/source4/libcli/dgram/mailslot.c +++ b/source4/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; |