diff options
author | djm@openbsd.org <djm@openbsd.org> | 2015-09-09 00:52:44 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2015-09-11 13:28:00 +1000 |
commit | 61942ea4a01e6db4fdf37ad61de81312ffe310e9 (patch) | |
tree | 0041c5f904cdadfeef13cebdce5033ea7e0f6c3e | |
parent | 4f7cc2f8cc861a21e6dbd7f6c25652afb38b9b96 (diff) |
upstream commit
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
Upstream-ID: b6e794b0c7fc4f9f329509263c8668d35f83ea55
-rw-r--r-- | ssh-rsa.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssh-rsa.c,v 1.53 2015/06/15 01:32:50 djm Exp $ */ | 1 | /* $OpenBSD: ssh-rsa.c,v 1.54 2015/09/09 00:52:44 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2000, 2003 Markus Friedl <markus@openbsd.org> | 3 | * Copyright (c) 2000, 2003 Markus Friedl <markus@openbsd.org> |
4 | * | 4 | * |
@@ -213,8 +213,8 @@ static int | |||
213 | openssh_RSA_verify(int hash_alg, u_char *hash, size_t hashlen, | 213 | openssh_RSA_verify(int hash_alg, u_char *hash, size_t hashlen, |
214 | u_char *sigbuf, size_t siglen, RSA *rsa) | 214 | u_char *sigbuf, size_t siglen, RSA *rsa) |
215 | { | 215 | { |
216 | size_t ret, rsasize = 0, oidlen = 0, hlen = 0; | 216 | size_t rsasize = 0, oidlen = 0, hlen = 0; |
217 | int len, oidmatch, hashmatch; | 217 | int ret, len, oidmatch, hashmatch; |
218 | const u_char *oid = NULL; | 218 | const u_char *oid = NULL; |
219 | u_char *decrypted = NULL; | 219 | u_char *decrypted = NULL; |
220 | 220 | ||