diff options
author | Paulo Andrade <pcpa@gnu.org> | 2016-06-02 10:35:52 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2016-06-02 10:47:44 -0400 |
commit | 2b68cc1bd05c88e13b79c38a2c8c36089f1f75a6 (patch) | |
tree | 11e0d941df7817db7083d441d6a38ae0dcc50d45 /src | |
parent | 08a0c252ad44644e57d0f143254158603073a8a9 (diff) | |
download | ti-rpc-2b68cc1bd05c88e13b79c38a2c8c36089f1f75a6.tar.gz |
Record errno value before calling syslog
Unlikely to change, but stay in the safe side.
Signed-off-by: Paulo Andrade <pcpa@gnu.org>
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/clnt_vc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/clnt_vc.c b/src/clnt_vc.c index 8af7ddd..0da18ca 100644 --- a/src/clnt_vc.c +++ b/src/clnt_vc.c @@ -191,10 +191,10 @@ clnt_vc_create(fd, raddr, prog, vers, sendsz, recvsz) ct = (struct ct_data *)mem_alloc(sizeof (*ct)); if ((cl == (CLIENT *)NULL) || (ct == (struct ct_data *)NULL)) { struct rpc_createerr *ce = &get_rpc_createerr(); - (void) syslog(LOG_ERR, clnt_vc_errstr, - clnt_vc_str, __no_mem_str); ce->cf_stat = RPC_SYSTEMERROR; ce->cf_error.re_errno = errno; + (void) syslog(LOG_ERR, clnt_vc_errstr, + clnt_vc_str, __no_mem_str); goto err; } ct->ct_addr.buf = NULL; |