summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/mgmt/glusterd/src')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-pmap.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-pmap.c b/xlators/mgmt/glusterd/src/glusterd-pmap.c
index b91937276e3..b94d2c6cd93 100644
--- a/xlators/mgmt/glusterd/src/glusterd-pmap.c
+++ b/xlators/mgmt/glusterd/src/glusterd-pmap.c
@@ -226,8 +226,12 @@ pmap_registry_remove (xlator_t *this, int port,
{
struct pmap_registry *pmap = NULL;
int p = 0;
+ glusterd_conf_t *priv = NULL;
- pmap = pmap_registry_get (this);
+ priv = this->private;
+ pmap = priv->pmap;
+ if (!pmap)
+ goto out;
if (port) {
if (port > 65535)