From: Todd C. Miller Date: Thu, 23 Jun 2005 03:19:00 +0000 (+0000) Subject: don't call sudo_ldap_display_cmnd if ldap not setup X-Git-Tag: SUDO_1_7_0~638 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=98931e0f8f6503a8dbcefc31fa5f755e84bc37c8;p=sudo don't call sudo_ldap_display_cmnd if ldap not setup --- diff --git a/parse.c b/parse.c index b4c4fdd56..f14fe81a2 100644 --- a/parse.c +++ b/parse.c @@ -409,7 +409,8 @@ display_cmnd(v, pw) int rval = 1; #ifdef HAVE_LDAP - rval = sudo_ldap_display_cmnd(v, pw); + if (v != NULL) + rval = sudo_ldap_display_cmnd(v, pw); #endif if (rval != 0 && !def_ignore_local_sudoers) { for (match = NULL, us = userspecs; us != NULL; us = us->next) {