From 0a2e55bb41c8ed32d4731c8b6456fc714a1149f4 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 20 Oct 2010 09:14:40 +1100 Subject: 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 --- source4/libcli/dgram/mailslot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit