• Alexander Aring's avatar
    ipv6: rpl: fix loop iteration · a7f9a6f4
    Alexander Aring authored
    This patch fix the loop iteration by not walking over the last
    iteration. The cmpri compressing value exempt the last segment. As the
    code shows the last iteration will be overwritten by cmpre value
    handling which is for the last segment.
    
    I think this doesn't end in any bufferoverflows because we work on worst
    case temporary buffer sizes but it ends in not best compression settings
    in some cases.
    
    Fixes: 8610c7c6 ("net: ipv6: add support for rpl sr exthdr")
    Signed-off-by: default avatarAlexander Aring <alex.aring@gmail.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    a7f9a6f4
rpl.c 3.1 KB