check for error in the COMPAT_50 case.
This commit is contained in:
parent
a46d2217e9
commit
dfcfa95743
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: uipc_socket.c,v 1.182 2009/01/15 15:25:37 christos Exp $ */
|
||||
/* $NetBSD: uipc_socket.c,v 1.183 2009/01/15 15:29:10 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2002, 2007, 2008 The NetBSD Foundation, Inc.
|
||||
|
@ -63,7 +63,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: uipc_socket.c,v 1.182 2009/01/15 15:25:37 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: uipc_socket.c,v 1.183 2009/01/15 15:29:10 christos Exp $");
|
||||
|
||||
#include "opt_compat_netbsd.h"
|
||||
#include "opt_sock_counters.h"
|
||||
|
@ -1690,6 +1690,8 @@ sosetopt1(struct socket *so, const struct sockopt *sopt)
|
|||
case SO_ORCVTIMEO: {
|
||||
struct timeval50 otv;
|
||||
error = sockopt_get(sopt, &otv, sizeof(otv));
|
||||
if (error)
|
||||
break;
|
||||
timeval50_to_timeval(&otv, &tv);
|
||||
opt = opt == SO_OSNDTIMEO ? SO_SNDTIMEO : SO_RCVTIMEO;
|
||||
error = 0;
|
||||
|
|
Loading…
Reference in New Issue