git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b50789
)
librpc:ndr: Set the length to 1 if we assign and empty string
author
Andreas Schneider
<asn@samba.org>
Mon, 8 May 2017 09:22:51 +0000
(11:22 +0200)
committer
Volker Lendecke
<vl@samba.org>
Tue, 16 May 2017 10:38:20 +0000
(12:38 +0200)
CID #
1399648
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
librpc/ndr/ndr_string.c
patch
|
blob
|
history
diff --git
a/librpc/ndr/ndr_string.c
b/librpc/ndr/ndr_string.c
index f9366b494a8c5af58ee7071d3df0103d09f546aa..067f91781eeb416799c656b32856cd3e8f7927d2 100644
(file)
--- a/
librpc/ndr/ndr_string.c
+++ b/
librpc/ndr/ndr_string.c
@@
-677,6
+677,7
@@
_PUBLIC_ enum ndr_err_code ndr_push_charset_to_null(struct ndr_push *ndr, int nd
if (str == NULL) {
str = "";
+ length = 1;
}
return ndr_push_charset(ndr, ndr_flags, str, length, byte_mul, chset);