Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=8228a18dd30f5c988b722495ea6c25cb1d2be035
Commit:     8228a18dd30f5c988b722495ea6c25cb1d2be035
Parent:     d8172d822fb02d5c4f7508e41f9267428dd3d891
Author:     Leigh Brown <[EMAIL PROTECTED]>
AuthorDate: Sun Dec 17 17:12:30 2006 -0800
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Sun Dec 17 21:59:25 2006 -0800

    [TCP]: Fix oops caused by tcp_v4_md5_do_del
    
    md5sig_info.alloced4 must be set to zero when freeing keys4, otherwise
    it will not be alloc'd again when another key is added to the same
    socket by tcp_v4_md5_do_add.
    
    Signed-off-by: Leigh Brown <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
---
 net/ipv4/tcp_ipv4.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c
index a1222d6..fa814fc 100644
--- a/net/ipv4/tcp_ipv4.c
+++ b/net/ipv4/tcp_ipv4.c
@@ -928,6 +928,7 @@ int tcp_v4_md5_do_del(struct sock *sk, __be32 addr)
                        if (tp->md5sig_info->entries4 == 0) {
                                kfree(tp->md5sig_info->keys4);
                                tp->md5sig_info->keys4 = NULL;
+                               tp->md5sig_info->alloced4 = 0;
                        } else if (tp->md5sig_info->entries4 != i) {
                                /* Need to do some manipulation */
                                memcpy(&tp->md5sig_info->keys4[i],
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to