From: Günther Deschner Date: Fri, 14 May 2010 12:51:44 +0000 (+0200) Subject: s4-libndr: fix ndr_pull_string_array() for non utf16 arrays in s4 as well. X-Git-Tag: samba-3.6.0pre1~2014 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3edb95a487b3330408392cb856ae42cde5f679f9;p=thirdparty%2Fsamba.git s4-libndr: fix ndr_pull_string_array() for non utf16 arrays in s4 as well. Guenther --- diff --git a/source4/librpc/ndr/ndr_string.c b/source4/librpc/ndr/ndr_string.c index d4e04c12b44..dfa72b5262c 100644 --- a/source4/librpc/ndr/ndr_string.c +++ b/source4/librpc/ndr/ndr_string.c @@ -444,7 +444,7 @@ _PUBLIC_ enum ndr_err_code ndr_pull_string_array(struct ndr_pull *ndr, int ndr_f return NDR_ERR_SUCCESS; } - switch (flags & LIBNDR_STRING_FLAGS) { + switch (flags & (LIBNDR_FLAG_STR_NULLTERM|LIBNDR_FLAG_STR_NOTERM)) { case LIBNDR_FLAG_STR_NULLTERM: /* * here the strings are null terminated