summaryrefslogtreecommitdiffstats
path: root/xlators/protocol
diff options
context:
space:
mode:
authorVijay Bellur <vijay@gluster.com>2010-09-25 07:52:18 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-09-27 10:47:29 -0700
commit4725bd37787fe1c02213ab63316abb234077990f (patch)
tree9ded5eb3df3dfcf5d2344bd05501daae3dba48c1 /xlators/protocol
parent336e2df7b74be7ad4c9ed403ca10b9f7f7ef9a58 (diff)
protocol/server: Check before de-referencing conf
Signed-off-by: Vijay Bellur <vijay@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1698 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1698
Diffstat (limited to 'xlators/protocol')
-rw-r--r--xlators/protocol/server/src/server-helpers.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xlators/protocol/server/src/server-helpers.c b/xlators/protocol/server/src/server-helpers.c
index 3dbd007ce..59a498971 100644
--- a/xlators/protocol/server/src/server-helpers.c
+++ b/xlators/protocol/server/src/server-helpers.c
@@ -726,6 +726,10 @@ server_connection_put (xlator_t *this, server_connection_t *conn)
conf = this->private;
+ if (conf == NULL) {
+ goto out;
+ }
+
pthread_mutex_lock (&conf->mutex);
{
conn->ref--;