fixed identification_t clone to apply function pointers
authorMartin Willi <martin@strongswan.org>
Fri, 23 Jun 2006 13:20:17 +0000 (13:20 -0000)
committerMartin Willi <martin@strongswan.org>
Fri, 23 Jun 2006 13:20:17 +0000 (13:20 -0000)
src/libstrongswan/utils/identification.c

index 06ab390..8a44d3d 100644 (file)
@@ -786,6 +786,9 @@ static identification_t *clone(private_identification_t *this)
        clone->string = malloc(strlen(this->string) + 1);
        strcpy(clone->string, this->string);
        
+       clone->public.equals = this->public.equals;
+       clone->public.belongs_to = this->public.belongs_to;
+       
        return &clone->public;
 }