Cast first argument for %.*s to int
[strongswan.git] / src / conftest / hooks / add_payload.c
index 37484e8..2903bb2 100644 (file)
@@ -103,7 +103,7 @@ METHOD(listener_t, message, 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)));
                }