librpc:ndr: Prohibit STR_NULLTERM|STR_NOTERM flags combination
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Thu, 13 Jul 2023 02:44:40 +0000 (14:44 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 15 Nov 2023 22:07:36 +0000 (22:07 +0000)
commitce2f4ecd5960b6e262f24fe739bb7a8bf0632866
tree3722eb45aa998d45ca716b2a08743d0202c0af5b
parentef0109d2cd723d92b01888ea257dc3b8d1d9ac86
librpc:ndr: Prohibit STR_NULLTERM|STR_NOTERM flags combination

ndr_pull_string() prohibited this, but ndr_push_string() always masked
STR_NOTERM out. Now the set of allowed flags should be consistent
between the two functions.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
librpc/ndr/ndr_string.c