make SOCKET-RECEIVE work correctly when receiving overly-long UDP packets
authorNathan Froyd <froydnj@gmail.com>
Wed, 5 Sep 2012 02:45:03 +0000 (22:45 -0400)
committerNathan Froyd <froydnj@gmail.com>
Wed, 5 Sep 2012 02:45:03 +0000 (22:45 -0400)
commit9d17f7daef6d930a229ae6c0339c9eefc3dd71e6
tree51bfd721a80e582f698239c293f9fad5f3bcf8b5
parentc8ef1a3b83ce08f35ee3e481eb334decc837d214
make SOCKET-RECEIVE work correctly when receiving overly-long UDP packets

Only copy as much data as the provided buffer can hold.  Continue to return
the length provided from recvfrom as per documentation.

Fixes lp#1023438.  Thanks to Robert Uhl for the fix.
NEWS
contrib/sb-bsd-sockets/sockets.lisp