From 5547db849770ff79a11a8bc1260478c56e4ffa9c Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Mon, 6 Jul 2015 15:45:45 +0530 Subject: protocol/server: Add null check to gf_client_put Change-Id: I8bab3cd7387f89743e15e7569f0bc83a7df3c754 BUG: 1240161 Signed-off-by: Raghavendra G Reviewed-on: http://review.gluster.org/11550 Tested-by: NetBSD Build System Reviewed-by: Raghavendra Bhat --- xlators/protocol/server/src/server-handshake.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/protocol/server') diff --git a/xlators/protocol/server/src/server-handshake.c b/xlators/protocol/server/src/server-handshake.c index 7ee12c49076..40cc684e1ba 100644 --- a/xlators/protocol/server/src/server-handshake.c +++ b/xlators/protocol/server/src/server-handshake.c @@ -700,7 +700,7 @@ fail: * list of connections the server is maintaining and might segfault * during statedump when bound_xl of the connection is accessed. */ - if (op_ret && !xl) { + if (op_ret && !xl && (client != NULL)) { /* We would have set the xl_private of the transport to the * @conn. But if we have put the connection i.e shutting down * the connection, then we should set xl_private to NULL as it -- cgit