diff options
author | Damien Miller <djm@mindrot.org> | 2008-06-29 16:05:48 +0200 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2008-06-29 16:05:48 +0200 |
commit | 471db5c2eb4c25b9e7c9257e811b07067ef731a4 (patch) | |
tree | 4f265ad36a0202a9b54c117c3a3a253c1a86f6cf /ssh-agent.c | |
parent | - djm@cvs.openbsd.org 2008/06/28 13:58:23 (diff) | |
download | openssh-471db5c2eb4c25b9e7c9257e811b07067ef731a4.tar.xz openssh-471db5c2eb4c25b9e7c9257e811b07067ef731a4.zip |
- djm@cvs.openbsd.org 2008/06/28 14:05:15
[ssh-agent.c]
reset global compat flag after processing a protocol 2 signature
request with the legacy DSA encoding flag set; ok markus
Diffstat (limited to 'ssh-agent.c')
-rw-r--r-- | ssh-agent.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ssh-agent.c b/ssh-agent.c index 8f9e2e8ce..b1c65fab6 100644 --- a/ssh-agent.c +++ b/ssh-agent.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh-agent.c,v 1.158 2008/06/28 13:58:23 djm Exp $ */ +/* $OpenBSD: ssh-agent.c,v 1.159 2008/06/28 14:05:15 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -312,6 +312,7 @@ process_sign_request2(SocketEntry *e) u_char *blob, *data, *signature = NULL; u_int blen, dlen, slen = 0; extern int datafellows; + int odatafellows; int ok = -1, flags; Buffer msg; Key *key; @@ -322,6 +323,7 @@ process_sign_request2(SocketEntry *e) data = buffer_get_string(&e->request, &dlen); flags = buffer_get_int(&e->request); + odatafellows = datafellows; if (flags & SSH_AGENT_OLD_SIGNATURE) datafellows = SSH_BUG_SIGBLOB; @@ -347,6 +349,7 @@ process_sign_request2(SocketEntry *e) xfree(blob); if (signature != NULL) xfree(signature); + datafellows = odatafellows; } /* shared */ |