]> git.karo-electronics.de Git - linux-beck.git/blobdiff - net/netfilter/ipvs/ip_vs_pe_sip.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
[linux-beck.git] / net / netfilter / ipvs / ip_vs_pe_sip.c
index 9a8f4213e8a69af3c05176c203f1bbde62434b2c..9ef22bdce9f192344f524c5337b60878dab8e480 100644 (file)
@@ -38,14 +38,10 @@ static int get_callid(const char *dptr, unsigned int dataoff,
                if (ret > 0)
                        break;
                if (!ret)
-                       return 0;
+                       return -EINVAL;
                dataoff += *matchoff;
        }
 
-       /* Empty callid is useless */
-       if (!*matchlen)
-               return -EINVAL;
-
        /* Too large is useless */
        if (*matchlen > IP_VS_PEDATA_MAXLEN)
                return -EINVAL;