summaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
authorjsg@openbsd.org <jsg@openbsd.org>2015-09-02 07:51:12 +0000
committerDamien Miller <djm@mindrot.org>2015-09-03 10:44:41 +1000
commitf3a3ea180afff080bab82087ee0b60db9fd84f6c (patch)
tree4740dcc7adb2acf0a0c994e65ce748d6a9b37714 /monitor.c
parentf498a98cf83feeb7ea01c15cd1c98b3111361f3a (diff)
upstream commit
Fix occurrences of "r = func() != 0" which result in the wrong error codes being returned due to != having higher precedence than =. ok deraadt@ markus@ Upstream-ID: 5fc35c9fc0319cc6fca243632662d2f06b5fd840
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/monitor.c b/monitor.c
index 934898392..e912a89cf 100644
--- a/monitor.c
+++ b/monitor.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: monitor.c,v 1.151 2015/08/21 23:29:31 deraadt Exp $ */ 1/* $OpenBSD: monitor.c,v 1.152 2015/09/02 07:51:12 jsg Exp $ */
2/* 2/*
3 * Copyright 2002 Niels Provos <provos@citi.umich.edu> 3 * Copyright 2002 Niels Provos <provos@citi.umich.edu>
4 * Copyright 2002 Markus Friedl <markus@openbsd.org> 4 * Copyright 2002 Markus Friedl <markus@openbsd.org>
@@ -722,7 +722,7 @@ mm_answer_sign(int sock, Buffer *m)
722 fatal("%s: sshbuf_new", __func__); 722 fatal("%s: sshbuf_new", __func__);
723 if ((r = sshbuf_put_cstring(sigbuf, proof_req)) != 0 || 723 if ((r = sshbuf_put_cstring(sigbuf, proof_req)) != 0 ||
724 (r = sshbuf_put_string(sigbuf, session_id2, 724 (r = sshbuf_put_string(sigbuf, session_id2,
725 session_id2_len) != 0) || 725 session_id2_len)) != 0 ||
726 (r = sshkey_puts(key, sigbuf)) != 0) 726 (r = sshkey_puts(key, sigbuf)) != 0)
727 fatal("%s: couldn't prepare private key " 727 fatal("%s: couldn't prepare private key "
728 "proof buffer: %s", __func__, ssh_err(r)); 728 "proof buffer: %s", __func__, ssh_err(r));