mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-27 07:44:29 +02:00
upstream: xstrdup environment variable used by ForwardAgent. bz#3328
from goetze at dovetail.com, ok djm@ deraadt@ OpenBSD-Commit-ID: 760320dac1c3b26904284ba417a7d63fccc5e742
This commit is contained in:
parent
86b4cb3a88
commit
724eb900ac
4
ssh.c
4
ssh.c
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: ssh.c,v 1.565 2021/07/23 05:24:02 djm Exp $ */
|
/* $OpenBSD: ssh.c,v 1.566 2021/08/08 08:49:09 dtucker 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
|
||||||
@ -1630,7 +1630,7 @@ main(int ac, char **av)
|
|||||||
fatal("Invalid ForwardAgent environment variable name %s", cp);
|
fatal("Invalid ForwardAgent environment variable name %s", cp);
|
||||||
}
|
}
|
||||||
if ((p = getenv(cp + 1)) != NULL)
|
if ((p = getenv(cp + 1)) != NULL)
|
||||||
forward_agent_sock_path = p;
|
forward_agent_sock_path = xstrdup(p);
|
||||||
else
|
else
|
||||||
options.forward_agent = 0;
|
options.forward_agent = 0;
|
||||||
free(cp);
|
free(cp);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user