summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2015-06-24 23:47:24 +0000
committerDamien Miller <djm@cvs.openbsd.org>2015-06-24 23:47:24 +0000
commit2951541c28c46d326cbebfd455efcc4b384739f3 (patch)
treec7e4a23199393ce90d1ec703404fb5151df7fa15 /usr.bin
parent4bc2432f1184213c2e5b7e95c2c5cbe35937e240 (diff)
correct test to sshkey_sign(); spotted by Albert S.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ssh/krl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/krl.c b/usr.bin/ssh/krl.c
index aa0d6ffb64d..983b577cfce 100644
--- a/usr.bin/ssh/krl.c
+++ b/usr.bin/ssh/krl.c
@@ -14,7 +14,7 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $OpenBSD: krl.c,v 1.31 2015/01/30 01:10:33 djm Exp $ */
+/* $OpenBSD: krl.c,v 1.32 2015/06/24 23:47:23 djm Exp $ */
#include <sys/param.h> /* MIN */
#include <sys/types.h>
@@ -770,7 +770,7 @@ ssh_krl_to_blob(struct ssh_krl *krl, struct sshbuf *buf,
goto out;
if ((r = sshkey_sign(sign_keys[i], &sblob, &slen,
- sshbuf_ptr(buf), sshbuf_len(buf), 0)) == -1)
+ sshbuf_ptr(buf), sshbuf_len(buf), 0)) != 0)
goto out;
KRL_DBG(("%s: signature sig len %zu", __func__, slen));
if ((r = sshbuf_put_string(buf, sblob, slen)) != 0)