mirror of
https://github.com/samba-team/samba.git
synced 2025-03-09 08:58:35 +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>
This commit is contained in:
parent
6b46b764fc
commit
9da028c46f
@ -185,7 +185,8 @@ def CHECK_TYPE_IN(conf, t, headers=None, alternate=None, define=None, cflags='')
|
||||
|
||||
@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()
|
||||
@ -209,6 +210,7 @@ def CHECK_VARIABLE(conf, v, define=None, always=False,
|
||||
lib=lib,
|
||||
headers=headers,
|
||||
define=define,
|
||||
mandatory=mandatory,
|
||||
always=always)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user