]> git.openfabrics.org - ~shefty/librdmacm.git/commit
rspreload: Call init from getsockname()
authorSean Hefty <sean.hefty@intel.com>
Tue, 24 Jul 2012 21:13:55 +0000 (14:13 -0700)
committerSean Hefty <sean.hefty@intel.com>
Tue, 24 Jul 2012 21:13:55 +0000 (14:13 -0700)
commit5098657d3eec71d72b8fe41766be15506fa83135
treea645d25e6d21e31afe2da3f99b55be8c8e6f4ca6
parente968946ba3b1b6f18b00c54621068ba3996362df
rspreload: Call init from getsockname()

netperf for some unknown reason calls getsockname() using a
hard coded value of 0, without first allocating a socket.
This causes the rsocket preload library to crash, since the
library has not been properly initialized.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>