increased message buffer to cope with NCP's innumerable UNITY Configuration Payloads
authorAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 16 Aug 2011 21:22:20 +0000 (23:22 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 16 Aug 2011 21:22:20 +0000 (23:22 +0200)
src/libcharon/encoding/message.c

index 35a91c9..2b53992 100644 (file)
@@ -1079,7 +1079,7 @@ METHOD(message_t, generate, status_t,
        encryption_payload_t *encryption = NULL;
        enumerator_t *enumerator;
        chunk_t chunk;
-       char str[256];
+       char str[BUF_LEN];
        u_int32_t *lenpos;
        bool *reserved;
        int i;
@@ -1448,7 +1448,7 @@ METHOD(message_t, parse_body, status_t,
        status_t status = SUCCESS;
        payload_t *payload;
        payload_type_t type;
-       char str[256];
+       char str[BUF_LEN];
 
        type = this->first_payload;