1
0
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:
Andreas Schneider 2017-05-08 11:22:51 +02:00 committed by Volker Lendecke
parent 9b50789197
commit ef109f86c7

View File

@ -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);