summaryrefslogtreecommitdiffstats
path: root/xlators/protocol/server/src/server.c
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2010-08-26 00:29:21 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-08-26 00:09:21 -0700
commitfb7cfce92572cd827de99fc076b5bb883972a057 (patch)
treed3f723efdf34b201ec0b6f2c2ff5539ba2326742 /xlators/protocol/server/src/server.c
parent7c7219fd881dd6485fbad2e80121a3c2dffd6d9b (diff)
rpcsvc: handle the return value of rpcsvc_create_listeners properly.
Signed-off-by: Raghavendra G <raghavendra@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 513 (Introduce 0 copy rdma) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=513
Diffstat (limited to 'xlators/protocol/server/src/server.c')
-rw-r--r--xlators/protocol/server/src/server.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/protocol/server/src/server.c b/xlators/protocol/server/src/server.c
index 05d69c4..35072ef 100644
--- a/xlators/protocol/server/src/server.c
+++ b/xlators/protocol/server/src/server.c
@@ -487,6 +487,7 @@ init (xlator_t *this)
if (ret < 1) {
gf_log (this->name, GF_LOG_DEBUG,
"creation of listener failed");
+ ret = -1;
goto out;
}