]> git.karo-electronics.de Git - linux-beck.git/blobdiff - net/ipv4/ip_sockglue.c
Merge remote-tracking branch 'regulator/fix/of' into tmp
[linux-beck.git] / net / ipv4 / ip_sockglue.c
index 3c9d20880283de0f9b5244eae8184e76d9a20dcd..d9c4f113d7093bba7eba2beefc31cd0af4b9bb95 100644 (file)
@@ -590,7 +590,7 @@ static int do_ip_setsockopt(struct sock *sk, int level,
        case IP_TTL:
                if (optlen < 1)
                        goto e_inval;
-               if (val != -1 && (val < 0 || val > 255))
+               if (val != -1 && (val < 1 || val > 255))
                        goto e_inval;
                inet->uc_ttl = val;
                break;