diff options
Diffstat (limited to 'pfinet/socket-ops.c')
-rw-r--r-- | pfinet/socket-ops.c | 4 |
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); |