Declare domain even if the system lacks innetgr().

Fixes a build error on musl-based systems like Alpine.
This commit is contained in:
Todd C. Miller
2023-03-13 15:21:38 -06:00
parent 918af413f3
commit d8e6396c55

View File

@@ -673,9 +673,7 @@ bool
netgr_matches(struct sudo_nss *nss, const char *netgr,
const char *lhost, const char *shost, const char *user)
{
#ifdef HAVE_INNETGR
const char *domain;
#endif
bool rc = false;
debug_decl(netgr_matches, SUDOERS_DEBUG_MATCH);