diff options
Diffstat (limited to 'source4/libcli')
-rw-r--r-- | source4/libcli/wrepl/winsrepl.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/libcli/wrepl/winsrepl.c b/source4/libcli/wrepl/winsrepl.c index ead8376834..b67138f1dd 100644 --- a/source4/libcli/wrepl/winsrepl.c +++ b/source4/libcli/wrepl/winsrepl.c @@ -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); |