diff options
-rw-r--r-- | xlators/protocol/server/src/server-helpers.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xlators/protocol/server/src/server-helpers.c b/xlators/protocol/server/src/server-helpers.c index 85d157f5f..3dbd007ce 100644 --- a/xlators/protocol/server/src/server-helpers.c +++ b/xlators/protocol/server/src/server-helpers.c @@ -1108,7 +1108,7 @@ server_print_reply (call_frame_t *frame, int op_ret, int op_errno) this = frame->this; conf = this->private; - if (!conf->trace) + if (!conf || !conf->trace) return; state = CALL_STATE (frame); @@ -1153,11 +1153,11 @@ server_print_request (call_frame_t *frame) this = frame->this; conf = this->private; - state = CALL_STATE (frame); - - if (!conf->trace) + if (!conf || !conf->trace) return; + state = CALL_STATE (frame); + memset (resolve_vars, '\0', 256); memset (resolve2_vars, '\0', 256); memset (loc_vars, '\0', 256); |