diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2018-05-03 19:49:27 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2018-05-03 19:50:18 +0300 |
commit | af02efe1edc14040c144cacf95fef0418d113432 (patch) | |
tree | 204117cee63ed9e39ce8c613d3cb25e10ec7cf89 | |
parent | a8ecf5f2fe153bcb82a3ec4cf6789d0d0e79f757 (diff) |
Fix referring into moved object
-rw-r--r-- | bpkg/rep-fetch.cxx | 4 |
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> |