• Phil Oester's avatar
    [NET]: skb_find_text ignores to argument · f72b948d
    Phil Oester authored
    skb_find_text takes a "to" argument which is supposed to limit how
    far into the skb it will search for the given text.  At present,
    it seems to ignore that argument on the first skb, and instead
    return a match even if the text occurs beyond the limit.
    
    Patch below fixes this, after adjusting for the "from" starting
    point.  This consequently fixes the netfilter string match's "--to"
    handling, which currently is broken.
    Signed-off-by: default avatarPhil Oester <kernel@linuxace.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    f72b948d
skbuff.c 49.3 KB