CVE-2022-3437 source4/heimdal: Remove __func__ compatibility workaround
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Wed, 12 Oct 2022 00:56:08 +0000 (13:56 +1300)
committerJule Anger <janger@samba.org>
Mon, 24 Oct 2022 05:27:02 +0000 (07:27 +0200)
commitfe1204d9da2c6f761c4dc4421f67057b10eaf430
treed81c89f1e0ec150ccbe412f89a38d9a38d97e951
parent9f658aa5fe2d64780b4cd25a456ae0c6e4b7c2a4
CVE-2022-3437 source4/heimdal: Remove __func__ compatibility workaround

As described by the C standard, __func__ is a variable, not a macro.
Hence this #ifndef check does not work as intended, and only serves to
unconditionally disable __func__. A nonoperating __func__ prevents
cmocka operating correctly, so remove this definition.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15134

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/heimdal/lib/krb5/krb5_locl.h