artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2989d28
)
Add the same entityq_flush() logic in ta_lookup() as it is done in
author
claudio
<claudio@openbsd.org>
Thu, 13 Jan 2022 11:47:44 +0000
(11:47 +0000)
committer
claudio
<claudio@openbsd.org>
Thu, 13 Jan 2022 11:47:44 +0000
(11:47 +0000)
repo_lookup(). This fixes -n mode.
OK tb@
usr.sbin/rpki-client/repo.c
patch
|
blob
|
history
diff --git
a/usr.sbin/rpki-client/repo.c
b/usr.sbin/rpki-client/repo.c
index
1d4c5c4
..
5451021
100644
(file)
--- a/
usr.sbin/rpki-client/repo.c
+++ b/
usr.sbin/rpki-client/repo.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: repo.c,v 1.2
0 2022/01/11 13:06:07
claudio Exp $ */
+/* $OpenBSD: repo.c,v 1.2
1 2022/01/13 11:47:44
claudio Exp $ */
/*
* Copyright (c) 2021 Claudio Jeker <claudio@openbsd.org>
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
@@
-1095,6
+1095,9
@@
ta_lookup(int id, struct tal *tal)
rp->ta = ta_get(tal);
+ if (repo_state(rp) != REPO_LOADING)
+ entityq_flush(&rp->queue, rp);
+
return rp;
}