1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-05 12:22:11 +03:00

r12370: - if we got a reply without a pending request, mark the socket as dead

instead of segfaulting

metze
(This used to be commit 043f5c1054)
This commit is contained in:
Stefan Metzmacher
2005-12-19 21:19:14 +00:00
committed by Gerald (Jerry) Carter
parent 64b611a18e
commit 8cf545b0ae

View File

@ -84,6 +84,11 @@ static NTSTATUS wrepl_finish_recv(void *private, DATA_BLOB packet_blob_in)
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);