summaryrefslogtreecommitdiff
path: root/pfinet/io-ops.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2020-01-05 01:36:44 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-01-05 01:36:44 +0100
commitf947558b36082121492d20a6f2e0e7800ff6977d (patch)
tree305c3a3a5ccb2d4aa02ed482b29b2f465b899d38 /pfinet/io-ops.c
parent05a15f8c43e7a167983f19bd866b90158661703e (diff)
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 'pfinet/io-ops.c')
-rw-r--r--pfinet/io-ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pfinet/io-ops.c b/pfinet/io-ops.c
index c1b6e5b5..33260b3a 100644
--- a/pfinet/io-ops.c
+++ b/pfinet/io-ops.c
@@ -380,7 +380,7 @@ S_io_reauthenticate (struct sock_user *user,
if (!newuser)
{
pthread_mutex_unlock (&global_lock);
- return 0;
+ return errno;
}
auth = getauth ();