prevent NULL reference from being used as '%s' argument.
commit3b95125187c76945210a679b7ea2dc3b8ae7f778
authorSwen Schillig <swen@linux.ibm.com>
Wed, 22 Jan 2020 10:28:28 +0000 (22 11:28 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 28 Feb 2020 03:08:46 +0000 (28 03:08 +0000)
tree010bea5f8e5204898300b1809630e5ceccf68d1d
parent535debb312b8dc5a9de6b6fe2543af84e9534a23
prevent NULL reference from being used as '%s' argument.

The two string arguments to torture_comment() can be NULL
as the succeeding checks suggest. This is not wanted because a compile
with --enable-developer throws an error of [-Werror=format-overflow=]
in those situations.

Signed-off-by: Swen Schillig <swen@linux.ibm.com>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/torture/rpc/drsuapi_cracknames.c