From: Todd C. Miller Date: Tue, 20 Dec 2011 13:39:01 +0000 (-0500) Subject: Don't dump interfaces if there are none. X-Git-Tag: SUDO_1_8_4~102^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4aa0ccb22b661e52f8779f3aae932ee42ddda533;p=sudo Don't dump interfaces if there are none. --- diff --git a/plugins/sudoers/sudoers.c b/plugins/sudoers/sudoers.c index 3dd6b856b..dd6121a3f 100644 --- a/plugins/sudoers/sudoers.c +++ b/plugins/sudoers/sudoers.c @@ -1180,8 +1180,10 @@ sudoers_policy_version(int verbose) dump_auth_methods(); dump_defaults(); sudo_printf(SUDO_CONV_INFO_MSG, "\n"); - dump_interfaces(interfaces_string); - sudo_printf(SUDO_CONV_INFO_MSG, "\n"); + if (interfaces_string != NULL) { + dump_interfaces(interfaces_string); + sudo_printf(SUDO_CONV_INFO_MSG, "\n"); + } } debug_return_bool(true); }