artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b308aa
)
Missing return value check for BIO_new()
author
tb
<tb@openbsd.org>
Sat, 26 Nov 2022 23:05:22 +0000
(23:05 +0000)
committer
tb
<tb@openbsd.org>
Sat, 26 Nov 2022 23:05:22 +0000
(23:05 +0000)
usr.sbin/rpki-client/geofeed.c
patch
|
blob
|
history
diff --git
a/usr.sbin/rpki-client/geofeed.c
b/usr.sbin/rpki-client/geofeed.c
index
bf8eef1
..
e4a86da
100644
(file)
--- 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 jo
b Exp $ */
+/* $OpenBSD: geofeed.c,v 1.
5 2022/11/26 23:05:22 t
b 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;