aboutsummaryrefslogtreecommitdiffstats
path: root/src/charon/encoding
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2008-04-02 18:21:03 +0000
committerTobias Brunner <tobias@strongswan.org>2008-04-02 18:21:03 +0000
commitc3f803c4c62c054fdbebf99e79c8d1fb877dc43f (patch)
tree227271e2b7dc83fbfc08b945c1872be17bb16038 /src/charon/encoding
parentf049b29491641e6af463b616e9081f2b3c68f628 (diff)
downloadstrongswan-c3f803c4c62c054fdbebf99e79c8d1fb877dc43f.tar.bz2
strongswan-c3f803c4c62c054fdbebf99e79c8d1fb877dc43f.tar.xz
fixing some memory leaks
Diffstat (limited to 'src/charon/encoding')
-rw-r--r--src/charon/encoding/payloads/endpoint_notify.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/charon/encoding/payloads/endpoint_notify.c b/src/charon/encoding/payloads/endpoint_notify.c
index 03fc153c0..742643edc 100644
--- a/src/charon/encoding/payloads/endpoint_notify.c
+++ b/src/charon/encoding/payloads/endpoint_notify.c
@@ -316,6 +316,7 @@ static endpoint_notify_t *_clone(private_endpoint_notify_t *this)
static status_t destroy(private_endpoint_notify_t *this)
{
DESTROY_IF(this->endpoint);
+ DESTROY_IF(this->base);
free(this);
return SUCCESS;
}
@@ -374,6 +375,7 @@ endpoint_notify_t *endpoint_notify_create_from_host(me_endpoint_type_t type, hos
break;
}
+ /* FIXME: if there is more than one ip address we should vary this priority */
this->priority += 65535;
if (!host)
@@ -390,7 +392,7 @@ endpoint_notify_t *endpoint_notify_create_from_host(me_endpoint_type_t type, hos
this->family = IPv6;
break;
default:
- /* unsupported family type, we do not set the hsot
+ /* unsupported family type, we do not set the host
* (family is set to NO_FAMILY) */
return &this->public;
}