summaryrefslogtreecommitdiff
path: root/source3/libsmb/clispnego.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-01-16 04:40:07 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-01-16 04:40:07 +0000
commit30ddea1f05a83cde1dc3ef72583ec7ba04d1d013 (patch)
tree149ee3e134d87dc44816828e46dd71bf6a3abb9c /source3/libsmb/clispnego.c
parent70bf249cfb83ee1836bf8d16b0f74e60b873b9ba (diff)
downloadsamba-30ddea1f05a83cde1dc3ef72583ec7ba04d1d013.tar.gz
samba-30ddea1f05a83cde1dc3ef72583ec7ba04d1d013.tar.bz2
samba-30ddea1f05a83cde1dc3ef72583ec7ba04d1d013.zip
(missed in last commit)
Change the 'cookie' to be the ntlmssp_context, and use the 'auth_context' on that to store the cookie. Ensures that simple callbacks can 'just work'. Also make it clear that we are doing a pull_string into a pstring, not just any sized buffer. Andrew Bartlett (This used to be commit c7793f27188e658b7fc6336aa51d367eab36fc17)
Diffstat (limited to 'source3/libsmb/clispnego.c')
-rw-r--r--source3/libsmb/clispnego.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/clispnego.c b/source3/libsmb/clispnego.c
index 6a5f6c00ae..f4a414ef52 100644
--- a/source3/libsmb/clispnego.c
+++ b/source3/libsmb/clispnego.c
@@ -749,7 +749,7 @@ BOOL msrpc_parse(DATA_BLOB *blob,
break;
case 'C':
s = va_arg(ap, char *);
- head_ofs += pull_string(NULL, p, blob->data+head_ofs, -1,
+ head_ofs += pull_string(NULL, p, blob->data+head_ofs, sizeof(p),
blob->length - head_ofs,
STR_ASCII|STR_TERMINATE);
if (strcmp(s, p) != 0) {