• Nick Bowler's avatar
    ah: Correctly pass error codes in ahash output callback. · 069294e8
    Nick Bowler authored
    The AH4/6 ahash output callbacks pass nexthdr to xfrm_output_resume
    instead of the error code.  This appears to be a copy+paste error from
    the input case, where nexthdr is expected.  This causes the driver to
    continuously add AH headers to the datagram until either an allocation
    fails and the packet is dropped or the ahash driver hits a synchronous
    fallback and the resulting monstrosity is transmitted.
    
    Correct this issue by simply passing the error code unadulterated.
    Signed-off-by: default avatarNick Bowler <nbowler@elliptictech.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    069294e8
ah4.c 12.3 KB