summaryrefslogtreecommitdiff
path: root/auth2-pubkey.c
diff options
context:
space:
mode:
authormestre@openbsd.org <mestre@openbsd.org>2018-08-28 12:25:53 +0000
committerDamien Miller <djm@mindrot.org>2018-09-09 14:50:32 +1000
commitdb8bb80e3ac1bcb3e1305d846cd98c6b869bf03f (patch)
treee0fcffed99d8b209f46d3238acb9a76bc9d36841 /auth2-pubkey.c
parent086cc614f550b7d4f100c95e472a6b6b823938ab (diff)
upstream: fix misplaced parenthesis inside if-clause. it's harmless
and the only issue is showing an unknown error (since it's not defined) during fatal(), if it ever an error occurs inside that condition. OK deraadt@ markus@ djm@ OpenBSD-Commit-ID: acb0a8e6936bfbe590504752d01d1d251a7101d8
Diffstat (limited to 'auth2-pubkey.c')
-rw-r--r--auth2-pubkey.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/auth2-pubkey.c b/auth2-pubkey.c
index 3d9f9af1f..f9e4e2e7f 100644
--- a/auth2-pubkey.c
+++ b/auth2-pubkey.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: auth2-pubkey.c,v 1.84 2018/08/23 03:01:08 djm Exp $ */ 1/* $OpenBSD: auth2-pubkey.c,v 1.85 2018/08/28 12:25:53 mestre Exp $ */
2/* 2/*
3 * Copyright (c) 2000 Markus Friedl. All rights reserved. 3 * Copyright (c) 2000 Markus Friedl. All rights reserved.
4 * 4 *
@@ -177,7 +177,7 @@ userauth_pubkey(struct ssh *ssh)
177 (r = sshbuf_put_cstring(b, authctxt->service)) != 0 || 177 (r = sshbuf_put_cstring(b, authctxt->service)) != 0 ||
178 (r = sshbuf_put_cstring(b, "publickey")) != 0 || 178 (r = sshbuf_put_cstring(b, "publickey")) != 0 ||
179 (r = sshbuf_put_u8(b, have_sig)) != 0 || 179 (r = sshbuf_put_u8(b, have_sig)) != 0 ||
180 (r = sshbuf_put_cstring(b, pkalg) != 0) || 180 (r = sshbuf_put_cstring(b, pkalg)) != 0 ||
181 (r = sshbuf_put_string(b, pkblob, blen)) != 0) 181 (r = sshbuf_put_string(b, pkblob, blen)) != 0)
182 fatal("%s: build packet failed: %s", 182 fatal("%s: build packet failed: %s",
183 __func__, ssh_err(r)); 183 __func__, ssh_err(r));