svn commit: samba r14297 - in branches/SAMBA_4_0/source/libcli/dgram: .

tridge at samba.org tridge at samba.org
Mon Mar 13 05:02:51 GMT 2006


Author: tridge
Date: 2006-03-13 05:02:49 +0000 (Mon, 13 Mar 2006)
New Revision: 14297

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=14297

Log:

make sure we can go through the loop for than once



Modified:
   branches/SAMBA_4_0/source/libcli/dgram/mailslot.c


Changeset:
Modified: branches/SAMBA_4_0/source/libcli/dgram/mailslot.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/dgram/mailslot.c	2006-03-13 05:02:30 UTC (rev 14296)
+++ branches/SAMBA_4_0/source/libcli/dgram/mailslot.c	2006-03-13 05:02:49 UTC (rev 14297)
@@ -137,7 +137,9 @@
 		}
 		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;



More information about the samba-cvs mailing list