Allow creation of message_t objects for IKEv1 packets.
[strongswan.git] / src / conftest / hooks / add_payload.c
index 845d512..03a47cc 100644 (file)
@@ -98,7 +98,7 @@ METHOD(listener_t, message, bool,
                        }
                        enumerator->destroy(enumerator);
                }
-               if (strncasecmp(this->data, "0x", 2) == 0)
+               if (strncaseeq(this->data, "0x", 2))
                {
                        data = chunk_skip(chunk_create(this->data, strlen(this->data)), 2);
                        data = chunk_from_hex(data, NULL);