diff options
Diffstat (limited to 'sbin/ipsecctl/ipsecctl.c')
-rw-r--r-- | sbin/ipsecctl/ipsecctl.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sbin/ipsecctl/ipsecctl.c b/sbin/ipsecctl/ipsecctl.c index c8af85a0811..6138070b313 100644 --- a/sbin/ipsecctl/ipsecctl.c +++ b/sbin/ipsecctl/ipsecctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ipsecctl.c,v 1.39 2005/12/06 16:55:28 markus Exp $ */ +/* $OpenBSD: ipsecctl.c,v 1.40 2006/01/16 23:57:20 reyk Exp $ */ /* * Copyright (c) 2004, 2005 Hans-Joerg Hoexer <hshoexer@openbsd.org> * @@ -178,6 +178,11 @@ ipsecctl_commit(int action, struct ipsecctl *ipsec) free(rp->auth->dstid); free(rp->auth); } + if (rp->ikeauth) { + if (rp->ikeauth->string) + free(rp->ikeauth->string); + free(rp->ikeauth); + } if (rp->xfs) free(rp->xfs); if (rp->authkey) { |