diff options
author | deraadt@openbsd.org <deraadt@openbsd.org> | 2019-09-24 12:50:46 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2019-10-01 20:24:07 +1000 |
commit | 3e53ef28fab53094e3b19622ba0e9c3d5fe71273 (patch) | |
tree | 2b3ce90ad2058b8915ddaa67ca6a7472c80881be | |
parent | 90d4b2541e8c907793233d9cbd4963f7624f4174 (diff) |
upstream: identity_file[] should be PATH_MAX, not the arbitrary
number 1024
OpenBSD-Commit-ID: e775f94ad47ce9ab37bd1410d7cf3b7ea98b11b7
-rw-r--r-- | ssh-keygen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ssh-keygen.c b/ssh-keygen.c index 0dfad08c4..4b58ddaee 100644 --- a/ssh-keygen.c +++ b/ssh-keygen.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssh-keygen.c,v 1.350 2019/09/16 03:23:02 djm Exp $ */ | 1 | /* $OpenBSD: ssh-keygen.c,v 1.351 2019/09/24 12:50:46 deraadt Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -93,7 +93,7 @@ static int print_bubblebabble = 0; | |||
93 | static int fingerprint_hash = SSH_FP_HASH_DEFAULT; | 93 | static int fingerprint_hash = SSH_FP_HASH_DEFAULT; |
94 | 94 | ||
95 | /* The identity file name, given on the command line or entered by the user. */ | 95 | /* The identity file name, given on the command line or entered by the user. */ |
96 | static char identity_file[1024]; | 96 | static char identity_file[PATH_MAX]; |
97 | static int have_identity = 0; | 97 | static int have_identity = 0; |
98 | 98 | ||
99 | /* This is set to the passphrase if given on the command line. */ | 99 | /* This is set to the passphrase if given on the command line. */ |