fixed some memory leaks during configuration parsing. patch by Roman Hoog Antink <rha@open.ch>
This commit is contained in:
parent
a8c2005e67
commit
ff2e315ab3
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: cfparse.y,v 1.39 2011/03/01 14:14:50 vanhu Exp $ */
|
||||
/* $NetBSD: cfparse.y,v 1.40 2011/03/02 14:49:21 vanhu Exp $ */
|
||||
|
||||
/* Id: cfparse.y,v 1.66 2006/08/22 18:17:17 manubsd Exp */
|
||||
|
||||
|
@ -423,13 +423,16 @@ listen_stmt
|
|||
: X_ISAKMP ike_addrinfo_port
|
||||
{
|
||||
myaddr_listen($2, FALSE);
|
||||
racoon_free($2);
|
||||
}
|
||||
EOS
|
||||
| X_ISAKMP_NATT ike_addrinfo_port
|
||||
{
|
||||
#ifdef ENABLE_NATT
|
||||
myaddr_listen($2, TRUE);
|
||||
racoon_free($2);
|
||||
#else
|
||||
racoon_free($2);
|
||||
yyerror("NAT-T support not compiled in.");
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: prsa_par.y,v 1.5 2011/02/10 11:17:17 tteras Exp $ */
|
||||
/* $NetBSD: prsa_par.y,v 1.6 2011/03/02 14:49:21 vanhu Exp $ */
|
||||
|
||||
/* Id: prsa_par.y,v 1.3 2004/11/08 12:04:23 ludvigm Exp */
|
||||
|
||||
|
@ -211,6 +211,7 @@ rsa_statement:
|
|||
YYABORT;
|
||||
}
|
||||
$$ = base64_pubkey2rsa($2);
|
||||
free($2);
|
||||
}
|
||||
| TAG_PUB HEX
|
||||
{
|
||||
|
@ -256,6 +257,7 @@ addr4:
|
|||
}
|
||||
memcpy(sap, res->ai_addr, res->ai_addrlen);
|
||||
freeaddrinfo(res);
|
||||
free($1);
|
||||
}
|
||||
;
|
||||
|
||||
|
@ -284,6 +286,7 @@ addr6:
|
|||
}
|
||||
memcpy(sap, res->ai_addr, res->ai_addrlen);
|
||||
freeaddrinfo(res);
|
||||
free($1);
|
||||
}
|
||||
;
|
||||
|
||||
|
|
Loading…
Reference in New Issue