mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-05 00:00:45 -04:00
message: Make packet argument optional in generate()
This commit is contained in:
parent
127a98dc90
commit
e0b35142c1
@ -1650,7 +1650,10 @@ METHOD(message_t, generate, status_t,
|
||||
}
|
||||
}
|
||||
generator->destroy(generator);
|
||||
*packet = this->packet->clone(this->packet);
|
||||
if (packet)
|
||||
{
|
||||
*packet = this->packet->clone(this->packet);
|
||||
}
|
||||
return SUCCESS;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user