From 868d169a4084c24924a419adc46a54f721aa2efd Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sun, 9 Feb 2003 12:26:58 +0000 Subject: (only for HEAD at the moment). Add NTLMv2 support to our client, used when so configured ('client use NTLMv2 = yes') and only when 'client use spengo = no'. (A new option to allow the client and server ends to chose spnego seperatly). NTLMv2 signing doesn't yet work, and NTLMv2 is not done for NTLMSSP yet. Also some parinoia checks in our input parsing. Andrew Bartlett (This used to be commit 85e9c060eab59c7692198f14a447ad59f05af437) --- source3/libsmb/clispnego.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source3/libsmb/clispnego.c') diff --git a/source3/libsmb/clispnego.c b/source3/libsmb/clispnego.c index 3e28baa417..277bf4765f 100644 --- a/source3/libsmb/clispnego.c +++ b/source3/libsmb/clispnego.c @@ -709,7 +709,8 @@ BOOL msrpc_parse(DATA_BLOB *blob, case 'b': b = (DATA_BLOB *)va_arg(ap, void *); len1 = va_arg(ap, unsigned); - *b = data_blob(blob->data + head_ofs, len1); + *b = data_blob(blob->data + head_ofs, + MIN(len1, blob->length - head_ofs)); head_ofs += len1; break; case 'd': -- cgit