diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2009-04-17 07:11:29 +0000 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2009-04-17 07:11:29 +0000 |
commit | 67411e66c3ce7767e2178d613559e01999820771 (patch) | |
tree | 6fd577a4bbc1435f34e13451b2fe481bece2f6d5 /src/pluto/modecfg.c | |
parent | 5cac9e4c3463fb83dfd2908006256dec1205f409 (diff) | |
download | strongswan-67411e66c3ce7767e2178d613559e01999820771.tar.bz2 strongswan-67411e66c3ce7767e2178d613559e01999820771.tar.xz |
port the libstrongswan memory allocation methods to pluto
Diffstat (limited to 'src/pluto/modecfg.c')
-rw-r--r-- | src/pluto/modecfg.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/pluto/modecfg.c b/src/pluto/modecfg.c index 97e3b818d..2c8b274a1 100644 --- a/src/pluto/modecfg.c +++ b/src/pluto/modecfg.c @@ -531,7 +531,7 @@ modecfg_send_msg(struct state *st, int isama_type, internal_addr_t *ia) ); freeanychunk(st->st_tpacket); - clonetochunk(st->st_tpacket, msg.start, pbs_offset(&msg), "ModeCfg msg"); + clonetochunk(st->st_tpacket, msg.start, pbs_offset(&msg)); /* Transmit */ send_packet(st, "ModeCfg msg"); @@ -1093,8 +1093,7 @@ xauth_inI0(struct msg_digest *md) { /* send XAUTH reply msg and then delete ISAKMP SA */ freeanychunk(st->st_tpacket); - clonetochunk(st->st_tpacket, md->reply.start - , pbs_offset(&md->reply), "XAUTH reply msg"); + clonetochunk(st->st_tpacket, md->reply.start, pbs_offset(&md->reply)); send_packet(st, "XAUTH reply msg"); delete_state(st); return STF_IGNORE; @@ -1225,8 +1224,7 @@ xauth_inI1(struct msg_digest *md) { /* send XAUTH ack msg and then delete ISAKMP SA */ freeanychunk(st->st_tpacket); - clonetochunk(st->st_tpacket, md->reply.start - , pbs_offset(&md->reply), "XAUTH ack msg"); + clonetochunk(st->st_tpacket, md->reply.start, pbs_offset(&md->reply)); send_packet(st, "XAUTH ack msg"); delete_state(st); return STF_IGNORE; |