]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
libceph: skip message if too big to receive
authorAlex Elder <elder@inktank.com>
Fri, 5 Apr 2013 19:46:01 +0000 (14:46 -0500)
committerAlex Elder <elder@inktank.com>
Tue, 9 Apr 2013 01:24:16 +0000 (20:24 -0500)
commit5a0084a3e633b0a6c60be16647e2443ebe48f5b8
treef0f2c4d13a13de8cd3ccdb56bfb8ef23508f42de
parentf81d8af4887758da0097be0bbecff1314dca213b
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