summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2021-10-31 15:58:14 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2021-10-31 15:58:14 +0000
commit1c847bacbae8b69e0949c2a4d9ad0b899eeebfee (patch)
tree50cf41f078af8cc0a4634095b4892c6faf2896c5
parentf92c0e2daf537b3c39da4fbec4183c6102c96e70 (diff)
When converting the TAL parser to use load_file and pass the file via
data/datasz element to the parser process I forgot to remove the old buf argument that abused descr for that. Because of this rpki-client can crash. Found by benno@, OK benno@ beck@
-rw-r--r--usr.sbin/rpki-client/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/rpki-client/main.c b/usr.sbin/rpki-client/main.c
index 5241a10ed2a..a56aa6571fc 100644
--- a/usr.sbin/rpki-client/main.c
+++ b/usr.sbin/rpki-client/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.157 2021/10/28 19:02:36 claudio Exp $ */
+/* $OpenBSD: main.c,v 1.158 2021/10/31 15:58:13 claudio Exp $ */
/*
* Copyright (c) 2021 Claudio Jeker <claudio@openbsd.org>
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
@@ -408,7 +408,7 @@ queue_add_tal(const char *file)
}
/* Not in a repository, so directly add to queue. */
- entityq_add(nfile, RTYPE_TAL, NULL, buf, len, buf);
+ entityq_add(nfile, RTYPE_TAL, NULL, buf, len, NULL);
}
/*