return failure on RSA signature error; reported by Albert S
authordjm <djm@openbsd.org>
Mon, 15 Jun 2015 01:32:50 +0000 (01:32 +0000)
committerdjm <djm@openbsd.org>
Mon, 15 Jun 2015 01:32:50 +0000 (01:32 +0000)
usr.bin/ssh/ssh-rsa.c

index 9f70231..16fb9b3 100644 (file)
@@ -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 <markus@openbsd.org>
  *
@@ -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