diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-10-20 09:14:40 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-10-19 22:54:15 +0000 |
commit | 0a2e55bb41c8ed32d4731c8b6456fc714a1149f4 (patch) | |
tree | b6fb335ac6dded785f3e1561163027e95263abe1 /source4/libcli | |
parent | 45794dd30a7717aafba40864c1843e47098a4502 (diff) | |
download | samba-0a2e55bb41c8ed32d4731c8b6456fc714a1149f4.tar.gz samba-0a2e55bb41c8ed32d4731c8b6456fc714a1149f4.tar.xz 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/libcli')
-rw-r--r-- | source4/libcli/dgram/mailslot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/libcli/dgram/mailslot.c b/source4/libcli/dgram/mailslot.c index 261946e4587..38dd8fb41eb 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); |