From: claudio Date: Sun, 31 Oct 2021 15:58:13 +0000 (+0000) Subject: When converting the TAL parser to use load_file and pass the file via X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b0ae5e5023b9eeda4933f7ed701d46157c79d7b7;p=openbsd 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@ --- 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 * Copyright (c) 2019 Kristaps Dzonsons @@ -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); } /*