aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/ip_sockglue.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/ip_sockglue.c')
-rw-r--r--net/ipv4/ip_sockglue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/ip_sockglue.c b/net/ipv4/ip_sockglue.c
index c199d2311731..4d544573f48a 100644
--- a/net/ipv4/ip_sockglue.c
+++ b/net/ipv4/ip_sockglue.c
@@ -542,7 +542,7 @@ static int do_ip_setsockopt(struct sock *sk, int level,
542 inet->hdrincl = val ? 1 : 0; 542 inet->hdrincl = val ? 1 : 0;
543 break; 543 break;
544 case IP_MTU_DISCOVER: 544 case IP_MTU_DISCOVER:
545 if (val<0 || val>2) 545 if (val<0 || val>3)
546 goto e_inval; 546 goto e_inval;
547 inet->pmtudisc = val; 547 inet->pmtudisc = val;
548 break; 548 break;