summaryrefslogtreecommitdiff
path: root/source4/librpc
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-02-19 14:47:22 +0100
committerStefan Metzmacher <metze@samba.org>2008-02-19 15:59:05 +0100
commit611f0152a198e1a5c209b2ca5aad6b121dca9442 (patch)
tree027bc05bc6fb9749b634d25c45b3a75ab360fc77 /source4/librpc
parent7a3f15ff8a4b32c0a9f0114fc8208ddfcde796ce (diff)
downloadsamba-611f0152a198e1a5c209b2ca5aad6b121dca9442.tar.gz
samba-611f0152a198e1a5c209b2ca5aad6b121dca9442.tar.bz2
samba-611f0152a198e1a5c209b2ca5aad6b121dca9442.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 c388efab13d1be2086a99e6615fa348c4cdc4594)
Diffstat (limited to 'source4/librpc')
-rw-r--r--source4/librpc/idl/lsa.idl8
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/librpc/idl/lsa.idl b/source4/librpc/idl/lsa.idl
index 64fb2336bb..3159a7d16d 100644
--- a/source4/librpc/idl/lsa.idl
+++ b/source4/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;