setting server pointer to listener only after listen succeed

Change-Id: I61fe4fa1d3dc5816e13fe3f17cdce4b0a0d3edbf
Signed-off-by: Eyal Salomon <esalomon@mellanox.com>