message: print attributes for IKEv1 configuration payloads as well
authorMartin Willi <martin@revosec.ch>
Fri, 19 Jul 2013 13:48:06 +0000 (15:48 +0200)
committerMartin Willi <martin@revosec.ch>
Tue, 3 Sep 2013 14:26:19 +0000 (16:26 +0200)
src/libcharon/encoding/message.c

index 9bb8e51..37dc3c5 100644 (file)
@@ -1268,7 +1268,8 @@ static char* get_string(private_message_t *this, char *buf, int len)
                        pos += written;
                        len -= written;
                }
-               if (payload->get_type(payload) == CONFIGURATION)
+               if (payload->get_type(payload) == CONFIGURATION ||
+                       payload->get_type(payload) == CONFIGURATION_V1)
                {
                        cp_payload_t *cp = (cp_payload_t*)payload;
                        enumerator_t *attributes;