]> git.openfabrics.org - ~shefty/librdmacm.git/commit
rsocket: Segmentation fault fix in case of multiple connections
authorIlya Nelkenbaum <ilyan@mellanox.com>
Mon, 28 Jul 2014 12:48:09 +0000 (15:48 +0300)
committerSean Hefty <sean.hefty@intel.com>
Mon, 28 Jul 2014 16:34:43 +0000 (09:34 -0700)
commit064c9cb1bddbab9e6d54ba301facfae7e1992455
treed22cbcf9f2efdeea42a047c637cddeb78bc52d10
parenta7287adaea52d21cd2d50f1621f8eda37c4c3c90
rsocket: Segmentation fault fix in case of multiple connections

In case of more than 16 rsocket connections
are established, "svc->rss" buffer is reallocated
with more memory. Index 0 is reserved for the service's
communication socket, and this is not taken in count
when data is copied from old buffer location to
new one.

Signed-off-by: Ilya Nelkenbaum <ilyan@mellanox.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
src/rsocket.c