artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a4d411
)
rpki-client: check for getline error when reading the skiplist file
author
tb
<tb@openbsd.org>
Fri, 27 Sep 2024 12:52:58 +0000
(12:52 +0000)
committer
tb
<tb@openbsd.org>
Fri, 27 Sep 2024 12:52:58 +0000
(12:52 +0000)
ok claudio
usr.sbin/rpki-client/main.c
patch
|
blob
|
history
diff --git
a/usr.sbin/rpki-client/main.c
b/usr.sbin/rpki-client/main.c
index
1399cc8
..
be1d4ec
100644
(file)
--- a/
usr.sbin/rpki-client/main.c
+++ b/
usr.sbin/rpki-client/main.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: main.c,v 1.26
6 2024/09/04 15:46:43 jo
b Exp $ */
+/* $OpenBSD: main.c,v 1.26
7 2024/09/27 12:52:58 t
b Exp $ */
/*
* Copyright (c) 2021 Claudio Jeker <claudio@openbsd.org>
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
@@
-878,6
+878,8
@@
load_skiplist(const char *slf)
LIST_INSERT_HEAD(&skiplist, le, entry);
stats.skiplistentries++;
}
+ if (ferror(fp))
+ err(1, "error reading %s", slf);
fclose(fp);
free(line);