summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/ssh-rsa.c
diff options
context:
space:
mode:
authordjm <djm@openbsd.org>2015-09-09 00:52:44 +0000
committerdjm <djm@openbsd.org>2015-09-09 00:52:44 +0000
commite96ac4abc10af48f6c831f8ce04bc69947714bd2 (patch)
treeaa1d6ba84bc9eae60fbef0036aff9d813b180a89 /usr.bin/ssh/ssh-rsa.c
parentApparently, some recent update of Unicode data in the base system (diff)
downloadwireguard-openbsd-e96ac4abc10af48f6c831f8ce04bc69947714bd2.tar.xz
wireguard-openbsd-e96ac4abc10af48f6c831f8ce04bc69947714bd2.zip
openssh_RSA_verify return type is int, so don't make it size_t within
the function itself with only negative numbers or zero assigned to it. bz#2460
Diffstat (limited to 'usr.bin/ssh/ssh-rsa.c')
-rw-r--r--usr.bin/ssh/ssh-rsa.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/ssh-rsa.c b/usr.bin/ssh/ssh-rsa.c
index 16fb9b3a495..388571d1636 100644
--- a/usr.bin/ssh/ssh-rsa.c
+++ b/usr.bin/ssh/ssh-rsa.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh-rsa.c,v 1.53 2015/06/15 01:32:50 djm Exp $ */
+/* $OpenBSD: ssh-rsa.c,v 1.54 2015/09/09 00:52:44 djm Exp $ */
/*
* Copyright (c) 2000, 2003 Markus Friedl <markus@openbsd.org>
*
@@ -208,8 +208,8 @@ static int
openssh_RSA_verify(int hash_alg, u_char *hash, size_t hashlen,
u_char *sigbuf, size_t siglen, RSA *rsa)
{
- size_t ret, rsasize = 0, oidlen = 0, hlen = 0;
- int len, oidmatch, hashmatch;
+ size_t rsasize = 0, oidlen = 0, hlen = 0;
+ int ret, len, oidmatch, hashmatch;
const u_char *oid = NULL;
u_char *decrypted = NULL;