From 98e1ea0f178bdb8d26037edda9aae7bc2339bac4 Mon Sep 17 00:00:00 2001 From: shishir gowda Date: Thu, 7 Oct 2010 03:20:59 +0000 Subject: Possible race condition between cleanup and dereferencing Signed-off-by: shishir gowda Signed-off-by: Vijay Bellur BUG: 1760 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1760 --- xlators/protocol/legacy/transport/socket/src/socket.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'xlators/protocol') diff --git a/xlators/protocol/legacy/transport/socket/src/socket.c b/xlators/protocol/legacy/transport/socket/src/socket.c index 7b68e3a3e..854529ca2 100644 --- a/xlators/protocol/legacy/transport/socket/src/socket.c +++ b/xlators/protocol/legacy/transport/socket/src/socket.c @@ -1547,6 +1547,9 @@ fini (transport_t *this) { socket_private_t *priv = this->private; + if (!priv) + return; + this->private = NULL; gf_log (this->xl->name, GF_LOG_TRACE, "transport %p destroyed", this); -- cgit