diff options
author | Hans-Joerg Hoexer <hshoexer@cvs.openbsd.org> | 2005-04-07 19:15:59 +0000 |
---|---|---|
committer | Hans-Joerg Hoexer <hshoexer@cvs.openbsd.org> | 2005-04-07 19:15:59 +0000 |
commit | 54656f331545453947c6014680831e9fc130a64a (patch) | |
tree | 288c29589aea0e3f91fadd4e242c94d098fa23b6 /sbin/isakmpd | |
parent | 236bd4085aa7447d6c37b15031ba4361f1ea1a02 (diff) |
small cleanup, no binary change
Diffstat (limited to 'sbin/isakmpd')
-rw-r--r-- | sbin/isakmpd/message.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sbin/isakmpd/message.c b/sbin/isakmpd/message.c index 8798189aec4..4aef13213d3 100644 --- a/sbin/isakmpd/message.c +++ b/sbin/isakmpd/message.c @@ -1,4 +1,4 @@ -/* $OpenBSD: message.c,v 1.101 2005/04/07 18:52:18 hshoexer Exp $ */ +/* $OpenBSD: message.c,v 1.102 2005/04/07 19:15:58 hshoexer Exp $ */ /* $EOM: message.c,v 1.156 2000/10/10 12:36:39 provos Exp $ */ /* @@ -239,12 +239,11 @@ message_free(struct message *msg) if (msg->retrans) timer_remove_event(msg->retrans); if (msg->payload) { - for (i = 0; i < payload_index_max; i++) { + for (i = 0; i < payload_index_max; i++) while ((payload = TAILQ_FIRST(&msg->payload[i]))) { TAILQ_REMOVE(&msg->payload[i], payload, link); free(payload); } - } free(msg->payload); } while (TAILQ_FIRST(&msg->post_send) != 0) |