]> err.no Git - linux-2.6/blobdiff - net/ipv6/tcp_ipv6.c
[RAW]: Introduce raw_hashinfo structure
[linux-2.6] / net / ipv6 / tcp_ipv6.c
index b1bfbdd85d3ce6c671eefd4e631cb0c45a09080a..93980c3b83e694460fe42ab4ed74e91f47649d2f 100644 (file)
@@ -637,10 +637,6 @@ static int tcp_v6_md5_do_del(struct sock *sk, struct in6_addr *peer)
                                kfree(tp->md5sig_info->keys6);
                                tp->md5sig_info->keys6 = NULL;
                                tp->md5sig_info->alloced6 = 0;
-
-                               tcp_free_md5sig_pool();
-
-                               return 0;
                        } else {
                                /* shrink the database */
                                if (tp->md5sig_info->entries6 != i)
@@ -649,6 +645,8 @@ static int tcp_v6_md5_do_del(struct sock *sk, struct in6_addr *peer)
                                                (tp->md5sig_info->entries6 - i)
                                                * sizeof (tp->md5sig_info->keys6[0]));
                        }
+                       tcp_free_md5sig_pool();
+                       return 0;
                }
        }
        return -ENOENT;