mirror of
https://github.com/samba-team/samba.git
synced 2025-01-05 09:18:06 +03:00
CVE-2022-37966 wafsamba: add support for CHECK_VARIABLE(mandatory=True)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15237
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit 9da028c46f
)
This commit is contained in:
parent
a7e2f5d32e
commit
a4deabde39
@ -184,7 +184,8 @@ def CHECK_TYPE_IN(conf, t, headers=None, alternate=None, define=None):
|
||||
|
||||
@conf
|
||||
def CHECK_VARIABLE(conf, v, define=None, always=False,
|
||||
headers=None, msg=None, lib=None):
|
||||
headers=None, msg=None, lib=None,
|
||||
mandatory=False):
|
||||
'''check for a variable declaration (or define)'''
|
||||
if define is None:
|
||||
define = 'HAVE_%s' % v.upper()
|
||||
@ -208,6 +209,7 @@ def CHECK_VARIABLE(conf, v, define=None, always=False,
|
||||
lib=lib,
|
||||
headers=headers,
|
||||
define=define,
|
||||
mandatory=mandatory,
|
||||
always=always)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user