The this->data member is never NULL
This commit is contained in:
parent
9a1ba213f4
commit
3dcffed682
|
@ -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)));
|
||||
}
|
||||
|
|
|
@ -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)));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue