• Paulo Alcantara's avatar
    smb: client: fix potential broken compound request · 6914d288
    Paulo Alcantara authored
    Now that smb2_compound_op() can accept up to 5 commands in a single
    compound request, set the appropriate NextCommand and related flags to
    all subsequent commands as well as handling the case where a valid
    @cfile is passed and therefore skipping create and close requests in
    the compound chain.
    
    This fix a potential broken compound request that could be sent from
    smb2_get_reparse_inode() if the client found a valid open
    file (@cfile) prior to calling smb2_compound_op().
    Signed-off-by: default avatarPaulo Alcantara <pc@manguebit.com>
    Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
    6914d288
smb2inode.c 31.4 KB