libcli/smb: don't alter state->smb2.hdr when getting STATUS_PENDING
commitc29ff00fe4b2e9295c9796901452af06a4d15653
authorMichael Adam <obnox@samba.org>
Fri, 8 May 2015 10:05:06 +0000 (8 12:05 +0200)
committerMichael Adam <obnox@samba.org>
Fri, 8 May 2015 11:00:27 +0000 (8 13:00 +0200)
tree8f77f0d4e91afc0d877b27a8fbc1ef85bde4da1b
parentd3ed269074f7d7ca833e1753cda3ab5c3d4edab4
libcli/smb: don't alter state->smb2.hdr when getting STATUS_PENDING

We need to make sure smb2cli_req_get_sent_iov() returns what was sent
over the wire. This is required in order to correctly perform
the preauth calculation for SMB >= 3.1.

We keep separate variables for the cancel information we got
from a STATUS_PENDING response.

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
libcli/smb/smbXcli_base.c