- fixed strlen bug
This commit is contained in:
parent
563081a36d
commit
9abdf3b198
|
@ -98,7 +98,7 @@ initiate_ike_sa_job_t *initiate_ike_sa_job_create(char *configuration_name)
|
|||
this->public.destroy = (status_t (*)(initiate_ike_sa_job_t *)) destroy;
|
||||
|
||||
/* private variables */
|
||||
this->configuration_name = allocator_alloc(sizeof(configuration_name) + 1);
|
||||
this->configuration_name = allocator_alloc(strlen(configuration_name) + 1);
|
||||
if (this->configuration_name == NULL)
|
||||
{
|
||||
allocator_free(this);
|
||||
|
|
Loading…
Reference in New Issue