mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
librpc:ndr: Set the length to 1 if we assign and empty string
CID #1399648 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
parent
9b50789197
commit
ef109f86c7
@ -677,6 +677,7 @@ _PUBLIC_ enum ndr_err_code ndr_push_charset_to_null(struct ndr_push *ndr, int nd
|
|||||||
|
|
||||||
if (str == NULL) {
|
if (str == NULL) {
|
||||||
str = "";
|
str = "";
|
||||||
|
length = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
return ndr_push_charset(ndr, ndr_flags, str, length, byte_mul, chset);
|
return ndr_push_charset(ndr, ndr_flags, str, length, byte_mul, chset);
|
||||||
|
Loading…
Reference in New Issue
Block a user