diff --git a/lib/hx509/keyset.c b/lib/hx509/keyset.c index c9102654c..e884ab916 100644 --- a/lib/hx509/keyset.c +++ b/lib/hx509/keyset.c @@ -319,6 +319,8 @@ certs_merge_func(hx509_context context, void *ctx, hx509_cert c) int hx509_certs_merge(hx509_context context, hx509_certs to, hx509_certs from) { + if (from == NULL) + return 0; return hx509_certs_iter(context, from, certs_merge_func, to); }