diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2024-04-17 15:03:23 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2024-04-17 15:03:23 +0000 |
commit | ff01d5a7fa4ae7ce900662f4d0fcdf2ce451b092 (patch) | |
tree | 1713282d7964d472b67875758bb115ffdcc39831 /usr.sbin/rpki-client/parser.c | |
parent | 959663f3b92667dd74c682c4adfa8a90ffe0a7e3 (diff) |
Simplify super ugly exit path
ok job
Diffstat (limited to 'usr.sbin/rpki-client/parser.c')
-rw-r--r-- | usr.sbin/rpki-client/parser.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/usr.sbin/rpki-client/parser.c b/usr.sbin/rpki-client/parser.c index f6257eadd2e..d26d9c77d49 100644 --- a/usr.sbin/rpki-client/parser.c +++ b/usr.sbin/rpki-client/parser.c @@ -1,4 +1,4 @@ -/* $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> @@ -480,12 +480,11 @@ proc_parser_mft(struct entity *entp, struct mft **mp, char **crlfile, 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; } |