diff options
author | Günther Deschner <gd@samba.org> | 2010-09-14 17:57:23 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2010-09-14 18:00:30 +0200 |
commit | 33da33c59e431f6f097bdd143fb48db465607669 (patch) | |
tree | f71d4b3c11b1fa2fb20a95576b0cd785cb42f8ce | |
parent | 48976ac4978e3a0ff419755e1f77f60345480663 (diff) | |
download | samba-33da33c59e431f6f097bdd143fb48db465607669.tar.gz samba-33da33c59e431f6f097bdd143fb48db465607669.tar.bz2 samba-33da33c59e431f6f097bdd143fb48db465607669.zip |
ntlmssp: when pushing an ntlmssp NEGOTIATE_MESSAGE deal with NULL strings.
Guenther
-rw-r--r-- | librpc/idl/ntlmssp.idl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/librpc/idl/ntlmssp.idl b/librpc/idl/ntlmssp.idl index e26dc31598..b9be7daea7 100644 --- a/librpc/idl/ntlmssp.idl +++ b/librpc/idl/ntlmssp.idl @@ -105,10 +105,10 @@ interface ntlmssp [charset(DOS),value("NTLMSSP")] uint8 Signature[8]; [value(NtLmNegotiate)] ntlmssp_MessageType MessageType; NEGOTIATE NegotiateFlags; - [value(strlen(DomainName))] uint16 DomainNameLen; + [value(DomainName ? strlen(DomainName) : 0)] uint16 DomainNameLen; [value(DomainNameLen)] uint16 DomainNameMaxLen; [relative] [subcontext(0),subcontext_size(DomainNameLen)] [flag(ndr_ntlmssp_negotiated_string_flags(NTLMSSP_NEGOTIATE_OEM))] string *DomainName; - [value(strlen(Workstation))] uint16 WorkstationLen; + [value(Workstation ? strlen(Workstation) : 0)] uint16 WorkstationLen; [value(WorkstationLen)] uint16 WorkstationMaxLen; [relative] [subcontext(0),subcontext_size(WorkstationLen)] [flag(ndr_ntlmssp_negotiated_string_flags(NTLMSSP_NEGOTIATE_OEM))] string *Workstation; [switch_is(NegotiateFlags & NTLMSSP_NEGOTIATE_VERSION)] ntlmssp_Version Version; |