diff options
-rw-r--r-- | src/sss_client/common.c | 4 |
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; } |