mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
Don't initialise policy, v4bind and v6bind where the variables are
declared - it was bad style and caused a bug. v[46]bind need to be reset whenever we go to the "more:" label. Jean-Luc and I came up with this patch independently, so it had better be right! PR: 40771 Submitted by: Jean-Luc Richier <Jean-Luc.Richier@imag.fr>
This commit is contained in:
parent
d0c55c69c9
commit
60c1ef970b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=102861
@ -1581,15 +1581,22 @@ getconfigent(void)
|
||||
static char TCPMUX_TOKEN[] = "tcpmux/";
|
||||
#define MUX_LEN (sizeof(TCPMUX_TOKEN)-1)
|
||||
#ifdef IPSEC
|
||||
char *policy = NULL;
|
||||
char *policy;
|
||||
#endif
|
||||
int v4bind = 0;
|
||||
int v4bind;
|
||||
#ifdef INET6
|
||||
int v6bind = 0;
|
||||
int v6bind;
|
||||
#endif
|
||||
int i;
|
||||
|
||||
#ifdef IPSEC
|
||||
policy = NULL;
|
||||
#endif
|
||||
more:
|
||||
v4bind = 0;
|
||||
#ifdef INET6
|
||||
v6bind = 0;
|
||||
#endif
|
||||
while ((cp = nextline(fconfig)) != NULL) {
|
||||
#ifdef IPSEC
|
||||
/* lines starting with #@ is not a comment, but the policy */
|
||||
|
Loading…
Reference in New Issue
Block a user