mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
r14297: make sure we can go through the loop for than once
(This used to be commit 6a84940bd3f310344641474dac984b262413943b)
This commit is contained in:
parent
15ec1f8f00
commit
3ea60662fd
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user