summaryrefslogtreecommitdiffstats
path: root/src/pki.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pki.c')
-rw-r--r--src/pki.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pki.c b/src/pki.c
index 977f4bc..87d7e76 100644
--- a/src/pki.c
+++ b/src/pki.c
@@ -816,7 +816,7 @@ int ssh_pki_import_pubkey_file(const char *filename, ssh_key *pkey)
return SSH_ERROR;
}
- if (sb.st_size + 1 < sb.st_size) {
+ if (sb.st_size > MAX_PUBKEY_SIZE) {
return SSH_ERROR;
}