• J
    cifs: remove bogus first_time check in NTLMv2 session setup code · 8a224d48
    Jeff Layton 提交于
    This bug appears to be the result of a cut-and-paste mistake from the
    NTLMv1 code. The function to generate the MAC key was commented out, but
    not the conditional above it. The conditional then ended up causing the
    session setup key not to be copied to the buffer unless this was the
    first session on the socket, and that made all but the first NTLMv2
    session setup fail.
    
    Fix this by removing the conditional and all of the commented clutter
    that made it difficult to see.
    
    Cc: Stable <stable@kernel.org>
    Reported-by: NGunther Deschner <gdeschne@redhat.com>
    Signed-off-by: NJeff Layton <jlayton@redhat.com>
    8a224d48
sess.c 27.9 KB