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
f6708b5c04
commit
fdb4612606
@ -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