diff options
author | 2020-09-12 09:22:26 +0000 | |
---|---|---|
committer | 2020-09-12 09:22:26 +0000 | |
commit | 7440e5ea81183c8ea9e3dae8d2685d08a3eff3d9 (patch) | |
tree | 75e2c4b452d3785aa16d8942e5b6885c74b898d8 | |
parent | Change the noop (-n) behaviour. When no network fetch is done there (diff) | |
download | wireguard-openbsd-7440e5ea81183c8ea9e3dae8d2685d08a3eff3d9.tar.xz wireguard-openbsd-7440e5ea81183c8ea9e3dae8d2685d08a3eff3d9.zip |
Delete unused strdup().
ok claudio@
-rw-r--r-- | usr.sbin/rpki-client/main.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.sbin/rpki-client/main.c b/usr.sbin/rpki-client/main.c index d179a6d77ad..62be380ee9e 100644 --- a/usr.sbin/rpki-client/main.c +++ b/usr.sbin/rpki-client/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.75 2020/09/12 09:06:26 claudio Exp $ */ +/* $OpenBSD: main.c,v 1.76 2020/09/12 09:22:26 tobhe Exp $ */ /* * Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -1147,14 +1147,11 @@ proc_parser_crl(struct entity *entp, X509_STORE *store, X509_CRL *x509_crl; struct crl *crl; const unsigned char *dgst; - char *t; dgst = entp->has_dgst ? entp->dgst : NULL; if ((x509_crl = crl_parse(entp->uri, dgst)) != NULL) { if ((crl = malloc(sizeof(*crl))) == NULL) err(1, NULL); - if ((t = strdup(entp->uri)) == NULL) - err(1, NULL); if ((crl->aki = x509_crl_get_aki(x509_crl)) == NULL) errx(1, "x509_crl_get_aki failed"); crl->x509_crl = x509_crl; |