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
7161284200
commit
f72048605b
@ -1581,15 +1581,22 @@ getconfigent(void)
|
|||||||
static char TCPMUX_TOKEN[] = "tcpmux/";
|
static char TCPMUX_TOKEN[] = "tcpmux/";
|
||||||
#define MUX_LEN (sizeof(TCPMUX_TOKEN)-1)
|
#define MUX_LEN (sizeof(TCPMUX_TOKEN)-1)
|
||||||
#ifdef IPSEC
|
#ifdef IPSEC
|
||||||
char *policy = NULL;
|
char *policy;
|
||||||
#endif
|
#endif
|
||||||
int v4bind = 0;
|
int v4bind;
|
||||||
#ifdef INET6
|
#ifdef INET6
|
||||||
int v6bind = 0;
|
int v6bind;
|
||||||
#endif
|
#endif
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
#ifdef IPSEC
|
||||||
|
policy = NULL;
|
||||||
|
#endif
|
||||||
more:
|
more:
|
||||||
|
v4bind = 0;
|
||||||
|
#ifdef INET6
|
||||||
|
v6bind = 0;
|
||||||
|
#endif
|
||||||
while ((cp = nextline(fconfig)) != NULL) {
|
while ((cp = nextline(fconfig)) != NULL) {
|
||||||
#ifdef IPSEC
|
#ifdef IPSEC
|
||||||
/* lines starting with #@ is not a comment, but the policy */
|
/* lines starting with #@ is not a comment, but the policy */
|
||||||
|
Loading…
Reference in New Issue
Block a user