summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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 28adb4424..90713d5b2 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;
}