mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
r11629: fixed a bug found with the socket:testnonblock code. With randomised
under-reads we could end up supplying a buffer to the client that has an incorrect length
This commit is contained in:
parent
d340ea7906
commit
9c95015b9c
@ -291,6 +291,7 @@ next_partial:
|
||||
|
||||
/* it is a full request - give it to the caller */
|
||||
blob = pc->partial;
|
||||
blob.length = pc->num_read;
|
||||
|
||||
if (pc->packet_size < pc->num_read) {
|
||||
pc->partial = data_blob_talloc(pc, blob.data + pc->packet_size,
|
||||
|
Loading…
Reference in New Issue
Block a user