From 354ac9579f92d69a54b70b2010c7a5d35893eebc Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Wed, 16 Nov 2011 15:05:08 +0100 Subject: [PATCH] Compile error fixed. --- src/libcharon/encoding/message.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libcharon/encoding/message.c b/src/libcharon/encoding/message.c index 1dad23bc2..91d7f3df9 100644 --- a/src/libcharon/encoding/message.c +++ b/src/libcharon/encoding/message.c @@ -1488,6 +1488,8 @@ static bool is_connectivity_check(private_message_t *this, payload_t *payload) static status_t parse_payloads(private_message_t *this) { payload_type_t type = this->first_payload; + payload_t *payload; + status_t status; while (type != NO_PAYLOAD) { @@ -1678,7 +1680,6 @@ METHOD(message_t, parse_body, status_t, private_message_t *this, aead_t *aead) { status_t status = SUCCESS; - payload_t *payload; char str[BUF_LEN]; DBG2(DBG_ENC, "parsing body of message, first payload is %N",