fixed identification_t clone to apply function pointers
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user