rpc: Fix a crash due to NULL dereference
Change-Id: Ib2bf6dd564fb7e754d5441c96715b65ad2e21441 BUG: 1065611 Signed-off-by: Vijay Bellur <vbellur@redhat.com> Reviewed-on: http://review.gluster.org/7007 Reviewed-by: Niels de Vos <ndevos@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com>
This commit is contained in:
parent
1ad41c4ca1
commit
e77c485c70
@ -1197,14 +1197,14 @@ rpcsvc_submit_generic (rpcsvc_request_t *req, struct iovec *proghdr,
|
||||
"rpc-transport (%s)", req->xid,
|
||||
req->prog ? req->prog->progname : "(not matched)",
|
||||
req->prog ? req->prog->progver : 0,
|
||||
req->procnum, trans->name);
|
||||
req->procnum, trans ? trans->name : "");
|
||||
} else {
|
||||
gf_log (GF_RPCSVC, GF_LOG_TRACE,
|
||||
"submitted reply for rpc-message (XID: 0x%x, "
|
||||
"Program: %s, ProgVers: %d, Proc: %d) to rpc-transport "
|
||||
"(%s)", req->xid, req->prog ? req->prog->progname: "-",
|
||||
req->prog ? req->prog->progver : 0,
|
||||
req->procnum, trans->name);
|
||||
req->procnum, trans ? trans->name : "");
|
||||
}
|
||||
|
||||
disconnect_exit:
|
||||
|
Loading…
x
Reference in New Issue
Block a user