mirror of
https://github.com/samba-team/samba.git
synced 2025-03-10 12:58:35 +03:00
r1896: stricter check on packet parsing for NBT session replies
(This used to be commit 30ab38559e8c52ecdaf7ca9b124875ade82c5c66)
This commit is contained in:
parent
70f630d375
commit
5f1f1e5e5c
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user