diff options
| author | Timo Weingärtner <timo@tiwe.de> | 2020-08-14 23:35:47 +0200 |
|---|---|---|
| committer | Timo Weingärtner <timo@tiwe.de> | 2020-08-14 23:35:47 +0200 |
| commit | f8351aef302fa2da6183096fdf0013b2f29900ae (patch) | |
| tree | d0415307c77884524236d0534141d2c3f1491a4c /ssh-agent-filter.C | |
| parent | 6036ef52c956d8de14279b6f160ece60ae596eae (diff) | |
| download | ssh-agent-filter-f8351aef302fa2da6183096fdf0013b2f29900ae.tar.gz | |
upgrade to C++17
Diffstat (limited to 'ssh-agent-filter.C')
| -rw-r--r-- | ssh-agent-filter.C | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ssh-agent-filter.C b/ssh-agent-filter.C index b6d906b..340c606 100644 --- a/ssh-agent-filter.C +++ b/ssh-agent-filter.C @@ -499,8 +499,7 @@ rfc4251::string handle_request (rfc4251::string const & r) { if (allowed_pubkeys.count(key)) allow = true; else { - auto it = confirmed_pubkeys.find(key); - if (it != confirmed_pubkeys.end()) { + if (auto it = confirmed_pubkeys.find(key); it != confirmed_pubkeys.end()) { string request_description; bool dissect_ok{false}; if (!dissect_ok) |
