Fix bug #9174: Empty SPNEGO packet can cause smbd to crash.
authorJeremy Allison <jra@samba.org>
Tue, 18 Sep 2012 18:51:31 +0000 (11:51 -0700)
committerKarolin Seeger <kseeger@samba.org>
Mon, 29 Oct 2012 09:05:34 +0000 (10:05 +0100)
commit4a1f497f7db6011243322ada293b3b15d85ec061
tree670834ed892a2207630d463538d73c69b7e52aac
parent43a213be24b67b999f1691e452dac7d89a987814
Fix bug #9174: Empty SPNEGO packet can cause smbd to crash.

All fields within NegTokenInit and NegTokenTarg are optional. We incorrectly
assume we'll always get a data blob and indirect within it.
(cherry picked from commit 66c3247e74f8d545b1d769c7d9ef6542a08f0719)
source3/smbd/sesssetup.c
source3/smbd/smb2_sesssetup.c