aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bpkg/rep-fetch.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/bpkg/rep-fetch.cxx b/bpkg/rep-fetch.cxx
index daefc84..6e7ec88 100644
--- a/bpkg/rep-fetch.cxx
+++ b/bpkg/rep-fetch.cxx
@@ -67,7 +67,7 @@ namespace bpkg
bool a (need_auth (co, rl));
shared_ptr<const certificate> cert;
- const optional<string>& cert_pem (
+ optional<string> cert_pem (
find_base_repository (fr.repositories).certificate);
if (a)
@@ -107,7 +107,7 @@ namespace bpkg
authenticate_repository (co, conf, cert_pem, *cert, sm, rl);
}
- return rep_fetch_data {{move (fr)}, cert_pem, move (cert)};
+ return rep_fetch_data {{move (fr)}, move (cert_pem), move (cert)};
}
template <typename M>