mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
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)
This commit is contained in:
parent
364ce40643
commit
5e7cc85a12
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user