summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
Diffstat (limited to 'xlators')
-rw-r--r--xlators/nfs/server/src/nfs.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/xlators/nfs/server/src/nfs.c b/xlators/nfs/server/src/nfs.c
index 1ef7cdc70a4..0760b405df5 100644
--- a/xlators/nfs/server/src/nfs.c
+++ b/xlators/nfs/server/src/nfs.c
@@ -113,13 +113,12 @@ nfs_init_versions (struct nfs_state *nfs, xlator_t *this)
}
prog = version->init (this);
- prog->actorxl = this;
- version->program = prog;
if (!prog) {
ret = -1;
goto err;
}
-
+ prog->actorxl = this;
+ version->program = prog;
if (nfs->override_portnum)
prog->progport = nfs->override_portnum;
gf_log (GF_NFS, GF_LOG_DEBUG, "Starting program: %s",