diff options
Diffstat (limited to 'xlators/protocol')
-rw-r--r-- | xlators/protocol/server/src/server-helpers.c | 4 |
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 3dbd007ce99..59a49897116 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--; |