summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2015-06-15 01:32:50 +0000
committerDamien Miller <djm@mindrot.org>2015-06-15 13:45:24 +1000
commit4ef702e1244633c1025ec7cfe044b9ab267097bf (patch)
tree02a2576886515bf9dd682b8053764a77a63e626b
parenta170f22baf18af0b1acf2788b8b715605f41a1f9 (diff)
upstream commit
return failure on RSA signature error; reported by Albert S Upstream-ID: e61bb93dbe0349625807b0810bc213a6822121fa
-rw-r--r--ssh-rsa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ssh-rsa.c b/ssh-rsa.c
index aef798da6..cdc18a416 100644
--- a/ssh-rsa.c
+++ b/ssh-rsa.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssh-rsa.c,v 1.52 2014/06/24 01:13:21 djm Exp $ */ 1/* $OpenBSD: ssh-rsa.c,v 1.53 2015/06/15 01:32:50 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 *
@@ -113,7 +113,7 @@ ssh_rsa_sign(const struct sshkey *key, u_char **sigp, size_t *lenp,
113 } 113 }
114 if (b != NULL) 114 if (b != NULL)
115 sshbuf_free(b); 115 sshbuf_free(b);
116 return 0; 116 return ret;
117} 117}
118 118
119int 119int