Commit b8fd9ed0 authored by Niels Möller's avatar Niels Möller
Browse files

(list_intersect): Must call spki_tag_dup on the tags, when

copying the tail fo the list.

Rev: src/spki/tag.c:1.11
parent c327ca4e
......@@ -843,7 +843,7 @@ list_intersect(void *ctx, nettle_realloc_func *realloc,
a = b;
for ( ; a; a = a->cdr)
if (! (head = spki_cons(ctx, realloc, a->car, head)))
if (! (head = spki_cons(ctx, realloc, spki_tag_dup(a->car), head)))
return NULL;
return spki_tag_list_alloc(ctx, realloc,
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment