diff options
Diffstat (limited to 'src/libnsss/nsss_switch_pwd_getbyuid.c')
-rw-r--r-- | src/libnsss/nsss_switch_pwd_getbyuid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libnsss/nsss_switch_pwd_getbyuid.c b/src/libnsss/nsss_switch_pwd_getbyuid.c index 3e95e9e..e5b5c8a 100644 --- a/src/libnsss/nsss_switch_pwd_getbyuid.c +++ b/src/libnsss/nsss_switch_pwd_getbyuid.c @@ -14,6 +14,6 @@ int nsss_switch_pwd_getbyuid (nsss_switch_t *a, struct passwd *pw, stralloc *sa, if (!ipc_timed_send(buffer_fd(&a->b), buf, 5, deadline, stamp)) return 0 ; if (!buffer_timed_get(&a->b, &buf[0], 1, deadline, stamp)) return 0 ; if ((unsigned char)buf[0] == 255) return 0 ; - if (buf[0]) return (errno = buf[0], 0) ; + if (buf[0]) return (errno = (unsigned char)buf[0], 0) ; return nsss_switch_pwd_read(&a->b, pw, sa, deadline, stamp) ; } |