From e420dae5992d3b6a7b7588bf4ee0db7c284a1c04 Mon Sep 17 00:00:00 2001 From: djm Date: Mon, 15 Jun 2015 01:32:50 +0000 Subject: [PATCH] return failure on RSA signature error; reported by Albert S --- usr.bin/ssh/ssh-rsa.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/ssh/ssh-rsa.c b/usr.bin/ssh/ssh-rsa.c index 9f70231f917..16fb9b3a495 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.52 2014/06/24 01:13:21 djm Exp $ */ +/* $OpenBSD: ssh-rsa.c,v 1.53 2015/06/15 01:32:50 djm Exp $ */ /* * Copyright (c) 2000, 2003 Markus Friedl * @@ -108,7 +108,7 @@ ssh_rsa_sign(const struct sshkey *key, u_char **sigp, size_t *lenp, } if (b != NULL) sshbuf_free(b); - return 0; + return ret; } int -- 2.20.1