diff options
-rw-r--r-- | ssh.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssh.c,v 1.488 2018/07/19 10:28:47 dtucker Exp $ */ | 1 | /* $OpenBSD: ssh.c,v 1.489 2018/07/25 13:10:56 beck Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -2011,8 +2011,6 @@ load_public_identity_files(struct passwd *pw) | |||
2011 | free(keys); | 2011 | free(keys); |
2012 | } | 2012 | } |
2013 | #endif /* ENABLE_PKCS11 */ | 2013 | #endif /* ENABLE_PKCS11 */ |
2014 | if ((pw = getpwuid(original_real_uid)) == NULL) | ||
2015 | fatal("load_public_identity_files: getpwuid failed"); | ||
2016 | for (i = 0; i < options.num_identity_files; i++) { | 2014 | for (i = 0; i < options.num_identity_files; i++) { |
2017 | if (n_ids >= SSH_MAX_IDENTITY_FILES || | 2015 | if (n_ids >= SSH_MAX_IDENTITY_FILES || |
2018 | strcasecmp(options.identity_files[i], "none") == 0) { | 2016 | strcasecmp(options.identity_files[i], "none") == 0) { |