svn commit: samba r12370 - in
branches/SAMBA_4_0/source/libcli/wrepl: .
metze at samba.org
metze at samba.org
Mon Dec 19 21:19:14 GMT 2005
Author: metze
Date: 2005-12-19 21:19:14 +0000 (Mon, 19 Dec 2005)
New Revision: 12370
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=12370
Log:
- if we got a reply without a pending request, mark the socket as dead
instead of segfaulting
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-19 21:07:42 UTC (rev 12369)
+++ branches/SAMBA_4_0/source/libcli/wrepl/winsrepl.c 2005-12-19 21:19:14 UTC (rev 12370)
@@ -84,6 +84,11 @@
struct wrepl_request *req = wrepl_socket->recv_queue;
DATA_BLOB blob;
+ if (!req) {
+ DEBUG(1,("Received unexpected WINS packet of length %u!\n", packet_blob_in.length));
+ return NT_STATUS_INVALID_NETWORK_RESPONSE;
+ }
+
req->packet = talloc(req, struct wrepl_packet);
NT_STATUS_HAVE_NO_MEMORY(req->packet);
More information about the samba-cvs
mailing list