Extended nonce payload for IKEv1 support
[strongswan.git] / src / libcharon / encoding / payloads / payload.c
index 2021e84..56563ac 100644 (file)
@@ -180,7 +180,8 @@ payload_t *payload_create(payload_type_t type)
                case TRANSFORM_ATTRIBUTE_V1:
                        return (payload_t*)transform_attribute_create(type);
                case NONCE:
                case TRANSFORM_ATTRIBUTE_V1:
                        return (payload_t*)transform_attribute_create(type);
                case NONCE:
-                       return (payload_t*)nonce_payload_create();
+               case NONCE_V1:
+                       return (payload_t*)nonce_payload_create(type);
                case ID_INITIATOR:
                case ID_RESPONDER:
 #ifdef ME
                case ID_INITIATOR:
                case ID_RESPONDER:
 #ifdef ME