summaryrefslogtreecommitdiffstats
path: root/transport
diff options
context:
space:
mode:
Diffstat (limited to 'transport')
-rw-r--r--transport/socket/src/socket.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/transport/socket/src/socket.c b/transport/socket/src/socket.c
index fe18808a06a..14f151cb073 100644
--- a/transport/socket/src/socket.c
+++ b/transport/socket/src/socket.c
@@ -949,6 +949,7 @@ socket_connect (transport_t *this)
if (sock != -1) {
gf_log (this->xl->name, GF_LOG_DEBUG,
"connect () called on transport already connected");
+ ret = 0;
goto err;
}