mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-27 15:54:22 +02:00
upstream commit
sigp and lenp are not optional in ssh_agent_sign(); ok djm@
This commit is contained in:
parent
1b0ef38132
commit
fecede00a7
5
authfd.c
5
authfd.c
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: authfd.c,v 1.96 2015/03/25 19:21:48 markus Exp $ */
|
/* $OpenBSD: authfd.c,v 1.97 2015/03/26 19:32:19 markus Exp $ */
|
||||||
/*
|
/*
|
||||||
* Author: Tatu Ylonen <ylo@cs.hut.fi>
|
* Author: Tatu Ylonen <ylo@cs.hut.fi>
|
||||||
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
||||||
@ -438,9 +438,7 @@ ssh_agent_sign(int sock, struct sshkey *key,
|
|||||||
u_int flags = 0;
|
u_int flags = 0;
|
||||||
int r = SSH_ERR_INTERNAL_ERROR;
|
int r = SSH_ERR_INTERNAL_ERROR;
|
||||||
|
|
||||||
if (sigp != NULL)
|
|
||||||
*sigp = NULL;
|
*sigp = NULL;
|
||||||
if (lenp != NULL)
|
|
||||||
*lenp = 0;
|
*lenp = 0;
|
||||||
|
|
||||||
if (datalen > SSH_KEY_MAX_SIGN_DATA_SIZE)
|
if (datalen > SSH_KEY_MAX_SIGN_DATA_SIZE)
|
||||||
@ -469,7 +467,6 @@ ssh_agent_sign(int sock, struct sshkey *key,
|
|||||||
}
|
}
|
||||||
if ((r = sshbuf_get_string(msg, sigp, &len)) != 0)
|
if ((r = sshbuf_get_string(msg, sigp, &len)) != 0)
|
||||||
goto out;
|
goto out;
|
||||||
if (lenp != NULL)
|
|
||||||
*lenp = len;
|
*lenp = len;
|
||||||
r = 0;
|
r = 0;
|
||||||
out:
|
out:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user