Fix bug 7694 - Crash bug with invalid SPNEGO token.
commit5e7e402320ebce06957e85f35d478615b2210a87
authorJeremy Allison <jra@samba.org>
Sun, 26 Sep 2010 11:59:31 +0000 (26 04:59 -0700)
committerKarolin Seeger <kseeger@samba.org>
Thu, 7 Oct 2010 15:43:58 +0000 (7 17:43 +0200)
treec410b475de7552fefc52a2e67ffebb0abc9cceaf
parentb19f866f2285da5ecc3982b2c9c0ccd005dd41cc
Fix bug 7694 - Crash bug with invalid SPNEGO token.

Found by the CodeNomicon test suites at the SNIA plugfest.

http://www.codenomicon.com/

If an invalid SPNEGO packet contains no OIDs we crash in the SMB1/SMB2 server
as we indirect the first returned value OIDs[0], which is returned as NULL.

Modified for 3.5.x.

Jeremy.
source3/libads/sasl.c
source3/libsmb/cliconnect.c
source3/rpc_server/srv_pipe.c
source3/smbd/sesssetup.c