libceph: skip message if too big to receive
authorAlex Elder <elder@inktank.com>
Fri, 5 Apr 2013 19:46:01 +0000 (14:46 -0500)
committerSage Weil <sage@inktank.com>
Thu, 2 May 2013 04:18:27 +0000 (21:18 -0700)
commitf759ebb968dbf185fc079dd2e824b1aa3a3d71aa
tree4a1e7615ba84e4ddcdc87051e542a654a909d92e
parentea96571f7b865edaf1acd472e6f2cddc9fb67892
libceph: skip message if too big to receive

We know the length of our message buffers.  If we get a message
that's too long, just dump it and ignore it.  If skip was set
then con->in_msg won't be valid, so be careful not to dereference
a null pointer in the process.

This resolves:
    http://tracker.ceph.com/issues/4664

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
net/ceph/messenger.c