]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/ipv4/ip_options.c
[NETFILTER]: Fix timeout sysctls on big-endian 64bit architectures
[karo-tx-linux.git] / net / ipv4 / ip_options.c
index bce4e875193be1d596c4c607ab42e9e1f966513f..d3f6c468faf43ac20e4a8e56e1d5325ca96f14e0 100644 (file)
@@ -22,6 +22,7 @@
 #include <net/sock.h>
 #include <net/ip.h>
 #include <net/icmp.h>
+#include <net/route.h>
 
 /* 
  * Write options to IP header, record destination address to
@@ -510,8 +511,7 @@ static int ip_options_get_finish(struct ip_options **optp,
                kfree(opt);
                return -EINVAL;
        }
-       if (*optp)
-               kfree(*optp);
+       kfree(*optp);
        *optp = opt;
        return 0;
 }