-/* $OpenBSD: parser.c,v 1.133 2024/04/17 15:00:50 job Exp $ */
+/* $OpenBSD: parser.c,v 1.134 2024/04/17 15:03:22 tb Exp $ */
/*
* Copyright (c) 2019 Claudio Jeker <claudio@openbsd.org>
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
if (*mp != NULL) {
*crlmtime = crl->thisupdate;
- if (!crl_insert(&crlt, crl)) {
- crl_free(crl);
- }
- } else {
- crl_free(crl);
+ if (crl_insert(&crlt, crl))
+ crl = NULL;
}
+ crl_free(crl);
+
return file;
}