svn commit: samba r12240 - in branches/SAMBA_4_0/source/libcli/wrepl: .

metze at samba.org metze at samba.org
Wed Dec 14 19:04:46 GMT 2005


Author: metze
Date: 2005-12-14 19:04:45 +0000 (Wed, 14 Dec 2005)
New Revision: 12240

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

Log:
if the caller isn't interessted in the reply packet, just free it
(mostly use for send_only requests, where we don't have a reply at all)

metze
Modified:
   branches/SAMBA_4_0/source/libcli/wrepl/winsrepl.c


Changeset:
Modified: branches/SAMBA_4_0/source/libcli/wrepl/winsrepl.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/wrepl/winsrepl.c	2005-12-14 18:24:59 UTC (rev 12239)
+++ branches/SAMBA_4_0/source/libcli/wrepl/winsrepl.c	2005-12-14 19:04:45 UTC (rev 12240)
@@ -505,7 +505,7 @@
 			    struct wrepl_packet **packet)
 {
 	NTSTATUS status = wrepl_request_wait(req);
-	if (NT_STATUS_IS_OK(status)) {
+	if (NT_STATUS_IS_OK(status) && packet) {
 		*packet = talloc_steal(mem_ctx, req->packet);
 	}
 	talloc_free(req);



More information about the samba-cvs mailing list