diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2022-11-26 23:05:23 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2022-11-26 23:05:23 +0000 |
commit | 4350ef74785b15ebb87cc161f06d9a3fe4c798e4 (patch) | |
tree | 51697881285e9aeab057a4b8c834a22b4dea58f9 /usr.sbin | |
parent | 47298c31993f32451bc70caa7c396e6c91acdf7c (diff) |
Missing return value check for BIO_new()
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/rpki-client/geofeed.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/rpki-client/geofeed.c b/usr.sbin/rpki-client/geofeed.c index bf8eef12a71..e4a86dac8b7 100644 --- a/usr.sbin/rpki-client/geofeed.c +++ b/usr.sbin/rpki-client/geofeed.c @@ -1,4 +1,4 @@ -/* $OpenBSD: geofeed.c,v 1.4 2022/11/26 17:06:43 job Exp $ */ +/* $OpenBSD: geofeed.c,v 1.5 2022/11/26 23:05:22 tb Exp $ */ /* * Copyright (c) 2022 Job Snijders <job@fastly.com> * Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv> @@ -113,6 +113,8 @@ geofeed_parse(X509 **x509, const char *fn, char *buf, size_t len) int rc = 0; bio = BIO_new(BIO_s_mem()); + if (bio == NULL) + errx(1, "BIO_new"); memset(&p, 0, sizeof(struct parse)); p.fn = fn; |