]> err.no Git - linux-2.6/blobdiff - net/ipv6/af_inet6.c
Merge branch 'upstream-fixes'
[linux-2.6] / net / ipv6 / af_inet6.c
index 25c3fe5005d9f6a9753e131825169e8fb7dd0f9a..6c9711ac1c0324adb5496541efebc55e89a50bf7 100644 (file)
@@ -22,6 +22,7 @@
 
 
 #include <linux/module.h>
+#include <linux/capability.h>
 #include <linux/config.h>
 #include <linux/errno.h>
 #include <linux/types.h>
@@ -368,12 +369,6 @@ int inet6_destroy_sock(struct sock *sk)
        struct sk_buff *skb;
        struct ipv6_txoptions *opt;
 
-       /*
-        *      Release destination entry
-        */
-
-       sk_dst_reset(sk);
-
        /* Release rx options */
 
        if ((skb = xchg(&np->pktoptions, NULL)) != NULL)