diff options
Diffstat (limited to 'source4/libcli/dgram')
-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; |