From: Stefan Metzmacher Date: Wed, 23 Nov 2022 14:12:14 +0000 (+0100) Subject: CVE-2022-37966 wafsamba: add support for CHECK_VARIABLE(mandatory=True) X-Git-Tag: samba-4.15.13~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4deabde39e0219945d0725ee5c1a79591e8fd2d;p=thirdparty%2Fsamba.git 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 Reviewed-by: Joseph Sutton Reviewed-by: Andrew Bartlett (cherry picked from commit 9da028c46f70db60a80d47f5dadbec194510211f) --- diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py index 4d2aea6c941..e17e667532b 100644 --- a/buildtools/wafsamba/samba_autoconf.py +++ b/buildtools/wafsamba/samba_autoconf.py @@ -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)