diff options
author | job <job@cvs.openbsd.org> | 2020-12-29 14:51:12 +0000 |
---|---|---|
committer | job <job@cvs.openbsd.org> | 2020-12-29 14:51:12 +0000 |
commit | 52b095eff069b55cbb0cf52c477e8219e6a3feef (patch) | |
tree | db60a2b356ec910a4055f0751ffde3392aa332bc /usr.sbin/rpki-client | |
parent | 55768bd017443504ac7a7743c0dc9b640c9e00a8 (diff) |
Fix calloc in GBR
OK claudio@
Diffstat (limited to 'usr.sbin/rpki-client')
-rw-r--r-- | usr.sbin/rpki-client/gbr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/rpki-client/gbr.c b/usr.sbin/rpki-client/gbr.c index 6c337896c2f..601cc7d1f3c 100644 --- a/usr.sbin/rpki-client/gbr.c +++ b/usr.sbin/rpki-client/gbr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gbr.c,v 1.1 2020/12/09 11:29:04 claudio Exp $ */ +/* $OpenBSD: gbr.c,v 1.2 2020/12/29 14:51:11 job Exp $ */ /* * Copyright (c) 2020 Claudio Jeker <claudio@openbsd.org> * @@ -56,7 +56,7 @@ gbr_parse(X509 **x509, const char *fn) if (cms == NULL) return NULL; - if ((p.res = calloc(1, sizeof(struct roa))) == NULL) + if ((p.res = calloc(1, sizeof(*p.res))) == NULL) err(1, NULL); if ((p.res->vcard = strndup(cms, cmsz)) == NULL) err(1, NULL); |