diff options
Diffstat (limited to 'Source/charon/network/packet.c')
-rw-r--r-- | Source/charon/network/packet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/charon/network/packet.c b/Source/charon/network/packet.c index ea7af27b6..f2d7ef721 100644 --- a/Source/charon/network/packet.c +++ b/Source/charon/network/packet.c @@ -76,7 +76,7 @@ static status_t clone (private_packet_t *this, packet_t **clone) if (this->public.destination != NULL) { - this->public.destination->clone(this->public.destination, &(other->destination)); + other->destination = this->public.destination->clone(this->public.destination); } else { other->destination = NULL; @@ -84,7 +84,7 @@ static status_t clone (private_packet_t *this, packet_t **clone) if (this->public.source != NULL) { - this->public.source->clone(this->public.source, &(other->source)); + other->source = this->public.source->clone(this->public.source); } else { other->source = NULL; |