summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-10-20 09:14:40 +1100
committerAndrew Tridgell <tridge@samba.org>2010-10-19 22:54:15 +0000
commit0a2e55bb41c8ed32d4731c8b6456fc714a1149f4 (patch)
treeb6fb335ac6dded785f3e1561163027e95263abe1 /source4
parent45794dd30a7717aafba40864c1843e47098a4502 (diff)
downloadsamba-0a2e55bb41c8ed32d4731c8b6456fc714a1149f4.tar.gz
samba-0a2e55bb41c8ed32d4731c8b6456fc714a1149f4.tar.bz2
samba-0a2e55bb41c8ed32d4731c8b6456fc714a1149f4.zip
s4-mailslot: fixed handling of random collision in temporary mailslot names
we could get occasional failures in the samba4.nbt.dgram test if we happened to get a collision in the random mailslot names. Thanks to Jeremy for spotting this! (his autobuild failed) Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4')
-rw-r--r--source4/libcli/dgram/mailslot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/libcli/dgram/mailslot.c b/source4/libcli/dgram/mailslot.c
index 261946e458..38dd8fb41e 100644
--- a/source4/libcli/dgram/mailslot.c
+++ b/source4/libcli/dgram/mailslot.c
@@ -129,7 +129,7 @@ struct dgram_mailslot_handler *dgram_mailslot_temp(struct nbt_dgram_socket *dgms
if (name == NULL) return NULL;
if (dgram_mailslot_find(dgmsock, name)) {
talloc_free(name);
- return NULL;
+ continue;
}
dgmslot = dgram_mailslot_listen(dgmsock, name, handler, private_data);
talloc_free(name);