From ffe862eb84ca64c12920333af29ce02dd416d148 Mon Sep 17 00:00:00 2001 From: Shantanu Goel Date: Mon, 18 Jun 2012 08:45:32 -0400 Subject: Set return errno to the value prior to calling close(). --- src/sss_client/common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sss_client') diff --git a/src/sss_client/common.c b/src/sss_client/common.c index 28adb442..90713d5b 100644 --- a/src/sss_client/common.c +++ b/src/sss_client/common.c @@ -154,7 +154,7 @@ static enum sss_status sss_cli_send_req(enum sss_cli_command cmd, /* Write failed */ sss_cli_close_socket(); - *errnop = errno; + *errnop = error; return SSS_STATUS_UNAVAIL; } @@ -264,7 +264,7 @@ static enum sss_status sss_cli_recv_rep(enum sss_cli_command cmd, * through. */ sss_cli_close_socket(); - *errnop = errno; + *errnop = error; ret = SSS_STATUS_UNAVAIL; goto failed; } -- cgit