summaryrefslogtreecommitdiff
path: root/ssh-agent-filter.C
diff options
context:
space:
mode:
authorTimo Weingärtner <timo@tiwe.de>2013-09-18 16:43:22 +0200
committerTimo Weingärtner <timo@tiwe.de>2013-09-18 16:43:22 +0200
commit59f0ba5eb0a1a4c9bcada66bfe3cf1780e268aff (patch)
tree4220e0f658c2b82f0ba49fb752577c5357d01ad0 /ssh-agent-filter.C
parent3707680021de040472cd792131a8df42902d08ba (diff)
downloadssh-agent-filter-59f0ba5eb0a1a4c9bcada66bfe3cf1780e268aff.tar.gz
add one missing exception activation
Diffstat (limited to 'ssh-agent-filter.C')
-rw-r--r--ssh-agent-filter.C1
1 files changed, 1 insertions, 0 deletions
diff --git a/ssh-agent-filter.C b/ssh-agent-filter.C
index f5f9f08..733e12d 100644
--- a/ssh-agent-filter.C
+++ b/ssh-agent-filter.C
@@ -242,6 +242,7 @@ rfc4251string handle_request (rfc4251string const & r) {
// temp to test key filtering when signing
//return agent_answer;
std::istringstream agent_answer_iss{agent_answer};
+ agent_answer_iss.exceptions(std::ios::badbit | std::ios::failbit);
rfc4251byte answer_code;
rfc4251uint32 keycount;
agent_answer_iss >> answer_code >> keycount;