message: Make packet argument optional in generate()

This commit is contained in:
Tobias Brunner 2014-06-12 10:01:18 +02:00
parent 127a98dc90
commit e0b35142c1

View File

@ -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;
}