Fix bug 7694 - Crash bug with invalid SPNEGO token.
authorJeremy Allison <jra@samba.org>
Fri, 24 Sep 2010 04:44:24 +0000 (21:44 -0700)
committerJeremy Allison <jra@samba.org>
Fri, 24 Sep 2010 04:44:24 +0000 (21:44 -0700)
commitd8814b1a48adaf1f428c7119b97c87b69123e6fa
tree4b915160b408a5790000442b54567d7ab7de7b3a
parent0a1d153b256e45d7862235ab0fdaa9e92ae883f2
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.

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