LVS
lvs-devel
Google
 
Web LinuxVirtualServer.org

[PATCH] ipvs: SIP persistence engine - incorrect search of callid header

To: lvs-devel@xxxxxxxxxxxxxxx
Subject: [PATCH] ipvs: SIP persistence engine - incorrect search of callid header
From: Marco Angaroni <marcoangaroni@xxxxxxxxx>
Date: Wed, 2 Mar 2016 13:54:49 +0100
Hello,

issue description is in my previous e-mail:
http://archive.linuxvirtualserver.org/html/lvs-devel/2016-02/msg00001.html

Below the patch formatted as requested by Julian, applied and tested
on the latest stable kernel (v4.4.2). Hope this time will be ok.

Thanks,
Marco Angaroni


Signed-off-by: Marco Angaroni <marcoangaroni@xxxxxxxxx>
---
 net/netfilter/ipvs/ip_vs_pe_sip.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/netfilter/ipvs/ip_vs_pe_sip.c
b/net/netfilter/ipvs/ip_vs_pe_sip.c
index 1b8d594..b3e0e5b 100644
--- a/net/netfilter/ipvs/ip_vs_pe_sip.c
+++ b/net/netfilter/ipvs/ip_vs_pe_sip.c
@@ -88,7 +88,7 @@ ip_vs_sip_fill_param(struct ip_vs_conn_param *p,
struct sk_buff *skb)
        dptr = skb->data + dataoff;
        datalen = skb->len - dataoff;

-       if (get_callid(dptr, dataoff, datalen, &matchoff, &matchlen))
+       if (get_callid(dptr, 0, datalen, &matchoff, &matchlen))
                return -EINVAL;

        /* N.B: pe_data is only set on success,
--
1.8.3.1
--
To unsubscribe from this list: send the line "unsubscribe lvs-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

<Prev in Thread] Current Thread [Next in Thread>