diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-11-10 04:49:02 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:46:01 -0500 |
commit | 78422169b29d84bfebd8df705b00432d627d202d (patch) | |
tree | 8364d159b7163dc35d182ebf46c5101d0464958a | |
parent | 6481a752a2bdef8ad08923cb0d9999b3462210cb (diff) | |
download | samba-78422169b29d84bfebd8df705b00432d627d202d.tar.gz samba-78422169b29d84bfebd8df705b00432d627d202d.tar.bz2 samba-78422169b29d84bfebd8df705b00432d627d202d.zip |
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 9c95015b9cccc10a5ba1facd4b48c0fff34e9588)
-rw-r--r-- | source4/lib/stream/packet.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/lib/stream/packet.c b/source4/lib/stream/packet.c index 7aed43a943..76b796d4b5 100644 --- a/source4/lib/stream/packet.c +++ b/source4/lib/stream/packet.c @@ -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, |