summaryrefslogtreecommitdiff
path: root/pfinet/socket-ops.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-06-16 06:27:58 +0000
committerRoland McGrath <roland@gnu.org>2002-06-16 06:27:58 +0000
commitc4deb00eea16f3cbe3e338ebf2c118425be8b4db (patch)
treebca21febaccf300874fcb8fcd76f6e71448b22f1 /pfinet/socket-ops.c
parent70b973922af22ebcfa53a804ff3afad888b965de (diff)
2002-06-15 Roland McGrath <roland@frob.com>
* socket-ops.c (S_socket_getopt): Use a local int for result param of getsockopt hook function.
Diffstat (limited to 'pfinet/socket-ops.c')
-rw-r--r--pfinet/socket-ops.c4
1 files changed, 3 insertions, 1 deletions
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);