r24281: Fix bug found by Herb. The vuid entry in the cli_state structure gets
commitfa8e66dd8d2c68b91b27169c3c43820989f58758
authorJeremy Allison <jra@samba.org>
Wed, 8 Aug 2007 23:56:55 +0000 (8 23:56 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:29:25 +0000 (10 12:29 -0500)
tree0b375dbde7a7cfec27353c877762162858cffd49
parentc231f7b8f6025e2853eb6ecab43fe87566596234
r24281: Fix bug found by Herb. The vuid entry in the cli_state structure gets
left as nonzero as returned by the failed cli_session_setup_spnego. When we then try
to authenticate as the user in cli_session_setup this returns an
error "Bad userid" (as seen in wireshark).
"We should only leave cli->vuid != 0 on success. Looks like it's
getting set in the cli_session_setup_blob_receive() call and not
cleared again on error."
Jeremy.
source/libsmb/cliconnect.c