From 9f974b41eaf2d2a6b841574f9376e9d52bd38f5d Mon Sep 17 00:00:00 2001 From: claudio Date: Thu, 4 Mar 2021 15:35:39 +0000 Subject: [PATCH] Last commit was done from a non-clean tree. Revert one line that broke everything. Oups. --- usr.sbin/rpki-client/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/rpki-client/main.c b/usr.sbin/rpki-client/main.c index 3187627fa09..d99676fa020 100644 --- a/usr.sbin/rpki-client/main.c +++ b/usr.sbin/rpki-client/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.112 2021/03/04 14:24:17 claudio Exp $ */ +/* $OpenBSD: main.c,v 1.113 2021/03/04 15:35:39 claudio Exp $ */ /* * Copyright (c) 2019 Kristaps Dzonsons * @@ -446,7 +446,7 @@ repo_lookup(const char *uri) rp = repo_alloc(); rp->repouri = repo; local = strchr(repo, ':') + strlen("://"); - if ((rp->local = strdup(repo)) == NULL) + if (asprintf(&rp->local, "rsync/%s", local) == -1) err(1, NULL); if ((rp->uris[0] = strdup(repo)) == NULL) err(1, NULL); -- 2.20.1