1
0
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:
Andrew Tridgell 2005-11-10 04:49:02 +00:00 committed by Gerald (Jerry) Carter
parent d340ea7906
commit 9c95015b9c

View File

@ -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,