Cast first argument for %.*s to int
[strongswan.git] / src / conftest / hooks / unencrypted_notify.c
index 507f30c..f4c3572 100644 (file)
@@ -80,11 +80,11 @@ METHOD(listener_t, ike_updown, bool,
                        data = chunk_skip(chunk_create(this->data, strlen(this->data)), 2);
                        data = chunk_from_hex(data, NULL);
                }
-               else if (this->data && strlen(this->data))
+               else if (strlen(this->data))
                {
                        data = chunk_clone(chunk_create(this->data, strlen(this->data)));
                }
-               notify = notify_payload_create_from_protocol_and_type(
+               notify = notify_payload_create_from_protocol_and_type(NOTIFY,
                                                                        this->esp ? PROTO_ESP : PROTO_IKE, type);
                notify->set_spi(notify, this->spi);
                if (data.len)