1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

r1896: stricter check on packet parsing for NBT session replies

(This used to be commit 30ab38559e)
This commit is contained in:
Andrew Tridgell 2004-08-18 20:07:44 +00:00 committed by Gerald (Jerry) Carter
parent 70f630d375
commit 5f1f1e5e5c

View File

@ -354,7 +354,7 @@ static void smbcli_transport_finish_recv(struct smbcli_transport *transport)
req->in.allocated = req->in.size;
/* handle NBT session replies */
if (req->in.buffer[0] != 0) {
if (req->in.size >= 4 && req->in.buffer[0] != 0) {
req->status = NT_STATUS_OK;
goto async;
}