diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-01-05 01:36:44 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-01-05 01:36:44 +0100 |
commit | f947558b36082121492d20a6f2e0e7800ff6977d (patch) | |
tree | 305c3a3a5ccb2d4aa02ed482b29b2f465b899d38 /lwip | |
parent | 05a15f8c43e7a167983f19bd866b90158661703e (diff) | |
download | hurd-f947558b36082121492d20a6f2e0e7800ff6977d.tar.gz hurd-f947558b36082121492d20a6f2e0e7800ff6977d.tar.bz2 hurd-f947558b36082121492d20a6f2e0e7800ff6977d.zip |
lwip,pfinet: Make S_io_reauthenticate return error
* lwip/io-ops.c (lwip_S_io_reauthenticate): Return errno on
make_sock_user returning an error.
* pfinet/io-ops.c (S_io_reauthenticate): Likewise.
Diffstat (limited to 'lwip')
-rw-r--r-- | lwip/io-ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lwip/io-ops.c b/lwip/io-ops.c index 2e666ab2..f2ee01af 100644 --- a/lwip/io-ops.c +++ b/lwip/io-ops.c @@ -321,7 +321,7 @@ lwip_S_io_reauthenticate (struct sock_user * user, mach_port_t rend) newuser = make_sock_user (user->sock, 0, 1, 0); while (!newuser && errno == EINTR); if (!newuser) - return 0; + return errno; auth = getauth (); newright = ports_get_send_right (newuser); |