Fix bug #9174: Empty SPNEGO packet can cause smbd to crash.
commit66c3247e74f8d545b1d769c7d9ef6542a08f0719
authorJeremy Allison <jra@samba.org>
Tue, 18 Sep 2012 18:51:31 +0000 (18 11:51 -0700)
committerKarolin Seeger <kseeger@samba.org>
Fri, 21 Sep 2012 07:24:28 +0000 (21 09:24 +0200)
treeb10b3b2b6615ae9db28768e5235f3a73f0391924
parent6357c591b62ca275d861d80a651977e16fce949d
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.
source3/smbd/sesssetup.c
source3/smbd/smb2_sesssetup.c