diff options
author | Stefan Metzmacher <metze@samba.org> | 2008-02-19 14:47:22 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-02-28 23:30:22 +0100 |
commit | 5e7cc85a12ff08ab53d3c0a2fd22a45e332c4ab3 (patch) | |
tree | d7591ffd002b4216d74ab42be940042fa79f2cef /source3 | |
parent | 364ce40643c44085c016c2d9ad8e1bb02edf6a8a (diff) | |
download | samba-5e7cc85a12ff08ab53d3c0a2fd22a45e332c4ab3.tar.gz samba-5e7cc85a12ff08ab53d3c0a2fd22a45e332c4ab3.tar.bz2 samba-5e7cc85a12ff08ab53d3c0a2fd22a45e332c4ab3.zip |
lsa.idl: strlen_m*() also for the lsa_AsciiString* versions
We already did this before b994f899b42d294c0418bdc82660a2f7510667d6.
This is needed to handle NULL strings, where strlen() would crash...
Maybe we should add a strlen_a() and strlen_a_term() later...
metze
(This used to be commit c445a17a91827c6c95b3a1cda9b78f5cdd41aa55)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/librpc/idl/lsa.idl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/librpc/idl/lsa.idl b/source3/librpc/idl/lsa.idl index a705306fdc..ee8a2fe6b2 100644 --- a/source3/librpc/idl/lsa.idl +++ b/source3/librpc/idl/lsa.idl @@ -33,14 +33,14 @@ import "security.idl"; } lsa_Strings; typedef [public] struct { - [value(strlen(string))] uint16 length; - [value(strlen(string))] uint16 size; + [value(strlen_m(string))] uint16 length; + [value(strlen_m(string))] uint16 size; [charset(DOS),size_is(size),length_is(length)] uint8 *string; } lsa_AsciiString; typedef [public] struct { - [value(strlen(string))] uint16 length; - [value(strlen(string)+1)] uint16 size; + [value(strlen_m(string))] uint16 length; + [value(strlen_m_term(string))] uint16 size; [charset(DOS),size_is(size),length_is(length)] uint8 *string; } lsa_AsciiStringLarge; |