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 used to be commit 9c95015b9c)
This commit is contained in:
Andrew Tridgell 2005-11-10 04:49:02 +00:00 committed by Gerald (Jerry) Carter
parent 6481a752a2
commit 78422169b2

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,