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:
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…
Reference in New Issue
Block a user