summaryrefslogtreecommitdiff
path: root/ssh-agent-filter.C
diff options
context:
space:
mode:
Diffstat (limited to 'ssh-agent-filter.C')
-rw-r--r--ssh-agent-filter.C4
1 files changed, 2 insertions, 2 deletions
diff --git a/ssh-agent-filter.C b/ssh-agent-filter.C
index b094b2c..16d6f03 100644
--- a/ssh-agent-filter.C
+++ b/ssh-agent-filter.C
@@ -245,7 +245,7 @@ void setup_filters () {
if (debug) std::clog << "key allowed by matching comment" << std::endl;
}
- if (allow) allowed_pubkeys.insert(std::move(key));
+ if (allow) allowed_pubkeys.emplace(std::move(key));
else {
bool confirm{false};
@@ -266,7 +266,7 @@ void setup_filters () {
if (debug) std::clog << "key allowed with confirmation by catch-all (-A)" << std::endl;
}
- if (confirm) confirmed_pubkeys.emplace(std::move(key), comment);
+ if (confirm) confirmed_pubkeys.emplace(std::move(key), std::move(comm));
}
if (debug) std::clog << std::endl;