From: Tobias Brunner Date: Fri, 28 Sep 2012 15:08:16 +0000 (+0200) Subject: The this->data member is never NULL X-Git-Tag: 5.0.1~24 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3dcffed6;p=thirdparty%2Fstrongswan.git The this->data member is never NULL --- diff --git a/src/conftest/hooks/add_payload.c b/src/conftest/hooks/add_payload.c index 37484e8089..2903bb20f4 100644 --- a/src/conftest/hooks/add_payload.c +++ b/src/conftest/hooks/add_payload.c @@ -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))); } diff --git a/src/conftest/hooks/unencrypted_notify.c b/src/conftest/hooks/unencrypted_notify.c index 958e33e98e..f4c35725c7 100644 --- a/src/conftest/hooks/unencrypted_notify.c +++ b/src/conftest/hooks/unencrypted_notify.c @@ -80,7 +80,7 @@ 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))); }