mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-07 00:01:49 -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);
|
generator->destroy(generator);
|
||||||
*packet = this->packet->clone(this->packet);
|
if (packet)
|
||||||
|
{
|
||||||
|
*packet = this->packet->clone(this->packet);
|
||||||
|
}
|
||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user