Skip to content

Commit 9042023

Browse files
romanmichalvasko
authored andcommitted
session server ssh BUGFIX check erange on QNX
1 parent 5858e6d commit 9042023

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/session_server_ssh.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,7 @@ nc_server_ssh_getspnam(const char *username, struct spwd *spwd_buf, char **buf,
529529
r = getspnam_r(username, spwd_buf, *buf, *buf_size, &spwd);
530530
# else
531531
spwd = getspnam_r(username, spwd_buf, *buf, *buf_size);
532+
r = errno;
532533
# endif
533534
if (spwd) {
534535
/* entry found */

0 commit comments

Comments
 (0)