summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShantanu Goel <sgoel@trade4.test-jc.tower-research.com>2012-06-18 08:45:32 -0400
committerStephen Gallagher <sgallagh@redhat.com>2012-06-18 14:37:59 -0400
commitffe862eb84ca64c12920333af29ce02dd416d148 (patch)
tree99473c1294cb913b3db1856b3e7d051081649ffb /src
parentf618c95957bea1bcc748df520902518e819bf458 (diff)
downloadsssd-ffe862eb84ca64c12920333af29ce02dd416d148.tar.gz
sssd-ffe862eb84ca64c12920333af29ce02dd416d148.tar.bz2
sssd-ffe862eb84ca64c12920333af29ce02dd416d148.zip
Set return errno to the value prior to calling close().
Diffstat (limited to 'src')
-rw-r--r--src/sss_client/common.c4
1 files changed, 2 insertions, 2 deletions
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;
}