aboutsummaryrefslogtreecommitdiffstats
path: root/main/sudo/domain.patch
blob: 49620ebdb65037cbcd1b4ef70c59131d2a50c2b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- ./plugins/sudoers/match.c.orig
+++ ./plugins/sudoers/match.c
@@ -933,8 +933,8 @@
 bool
 netgr_matches(const char *netgr, const char *lhost, const char *shost, const char *user)
 {
+    static char *domain = NULL;
 #ifdef HAVE_INNETGR
-    static char *domain;
     static int initialized;
 #endif
     bool rc = false;