- fixed strlen bug
authorMartin Willi <martin@strongswan.org>
Thu, 17 Nov 2005 11:22:16 +0000 (11:22 -0000)
committerMartin Willi <martin@strongswan.org>
Thu, 17 Nov 2005 11:22:16 +0000 (11:22 -0000)
Source/charon/jobs/initiate_ike_sa_job.c

index c5498f4..d14de48 100644 (file)
@@ -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->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);
        if (this->configuration_name == NULL)
        {
                allocator_free(this);