From c4deb00eea16f3cbe3e338ebf2c118425be8b4db Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sun, 16 Jun 2002 06:27:58 +0000 Subject: 2002-06-15 Roland McGrath * socket-ops.c (S_socket_getopt): Use a local int for result param of getsockopt hook function. --- pfinet/socket-ops.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pfinet') diff --git a/pfinet/socket-ops.c b/pfinet/socket-ops.c index e01ce2e3..77ae3599 100644 --- a/pfinet/socket-ops.c +++ b/pfinet/socket-ops.c @@ -378,9 +378,11 @@ S_socket_getopt (struct sock_user *user, __mutex_lock (&global_lock); become_task (user); + int len = *datalen; err = - (level == SOL_SOCKET ? sock_getsockopt : *user->sock->ops->getsockopt) - (user->sock, level, option, *data, datalen); + (user->sock, level, option, *data, &len); + *datalen = len; __mutex_unlock (&global_lock); -- cgit v1.2.3