Preserve the existing value of an extern variable across the call to
process_sign_request2().
This commit is contained in:
parent
656d7ae41f
commit
5761f11cec
6
crypto/external/bsd/openssh/dist/ssh-agent.c
vendored
6
crypto/external/bsd/openssh/dist/ssh-agent.c
vendored
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: ssh-agent.c,v 1.2 2009/06/07 22:38:47 christos Exp $ */
|
/* $NetBSD: ssh-agent.c,v 1.3 2009/12/17 15:55:16 agc Exp $ */
|
||||||
/* $OpenBSD: ssh-agent.c,v 1.159 2008/06/28 14:05:15 djm Exp $ */
|
/* $OpenBSD: ssh-agent.c,v 1.159 2008/06/28 14:05:15 djm Exp $ */
|
||||||
/*
|
/*
|
||||||
* Author: Tatu Ylonen <ylo@cs.hut.fi>
|
* Author: Tatu Ylonen <ylo@cs.hut.fi>
|
||||||
@ -36,7 +36,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
__RCSID("$NetBSD: ssh-agent.c,v 1.2 2009/06/07 22:38:47 christos Exp $");
|
__RCSID("$NetBSD: ssh-agent.c,v 1.3 2009/12/17 15:55:16 agc Exp $");
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <sys/queue.h>
|
#include <sys/queue.h>
|
||||||
@ -307,13 +307,13 @@ process_sign_request2(SocketEntry *e)
|
|||||||
Buffer msg;
|
Buffer msg;
|
||||||
Key *key;
|
Key *key;
|
||||||
|
|
||||||
|
odatafellows = datafellows;
|
||||||
datafellows = 0;
|
datafellows = 0;
|
||||||
|
|
||||||
blob = buffer_get_string(&e->request, &blen);
|
blob = buffer_get_string(&e->request, &blen);
|
||||||
data = buffer_get_string(&e->request, &dlen);
|
data = buffer_get_string(&e->request, &dlen);
|
||||||
|
|
||||||
flags = buffer_get_int(&e->request);
|
flags = buffer_get_int(&e->request);
|
||||||
odatafellows = datafellows;
|
|
||||||
if (flags & SSH_AGENT_OLD_SIGNATURE)
|
if (flags & SSH_AGENT_OLD_SIGNATURE)
|
||||||
datafellows = SSH_BUG_SIGBLOB;
|
datafellows = SSH_BUG_SIGBLOB;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user