Fix crash in visudo introduced in sudo 1.8.9 when an IP address or

network is used in a host-based Defaults entry.  Bug #766
This commit is contained in:
Todd C. Miller
2017-01-07 19:50:05 -07:00
parent 0c3a8085b3
commit 90e1f4ec3e
5 changed files with 21 additions and 3 deletions

View File

@@ -43,7 +43,7 @@
# define INADDR_NONE ((unsigned int)-1)
#endif
static struct interface_list interfaces;
static struct interface_list interfaces = SLIST_HEAD_INITIALIZER(interfaces);
/*
* Parse a space-delimited list of IP address/netmask pairs and