summaryrefslogtreecommitdiffstats
path: root/net/unix
diff options
context:
space:
mode:
authorBenjamin Poirier <bpoirier@suse.de>2013-04-29 11:42:13 +0000
committerDavid S. Miller <davem@davemloft.net>2013-04-30 00:43:54 -0400
commit39cc86130bc045d87f525ce7742da308ff757cec (patch)
tree28e803dce3877b9f1eb7c8ad74fe58c29764a422 /net/unix
parentadd05ad4e9f5c4efee9b98535db5efa32b0d0492 (diff)
downloadlinux-39cc86130bc045d87f525ce7742da308ff757cec.tar.gz
linux-39cc86130bc045d87f525ce7742da308ff757cec.tar.bz2
linux-39cc86130bc045d87f525ce7742da308ff757cec.zip
unix/dgram: fix peeking with an offset larger than data in queue
Currently, peeking on a unix datagram socket with an offset larger than len of the data in the sk receive queue returns immediately with bogus data. That's because *off is not reset between each skb_queue_walk(). This patch fixes this so that the behavior is the same as peeking with no offset on an empty queue: the caller blocks. Signed-off-by: Benjamin Poirier <bpoirier@suse.de> Acked-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/unix')
0 files changed, 0 insertions, 0 deletions