summaryrefslogtreecommitdiff
path: root/authfd.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 /authfd.c
parentf498a98cf83feeb7ea01c15cd1c98b3111361f3a (diff)
downloadopenssh-git-f3a3ea180afff080bab82087ee0b60db9fd84f6c.tar.gz
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 'authfd.c')
-rw-r--r--authfd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/authfd.c b/authfd.c
index eaa14264..12bf1251 100644
--- a/authfd.c
+++ b/authfd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: authfd.c,v 1.98 2015/07/03 03:43:18 djm Exp $ */
+/* $OpenBSD: authfd.c,v 1.99 2015/09/02 07:51:12 jsg Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -454,7 +454,7 @@ ssh_agent_sign(int sock, struct sshkey *key,
(r = sshbuf_put_string(msg, data, datalen)) != 0 ||
(r = sshbuf_put_u32(msg, flags)) != 0)
goto out;
- if ((r = ssh_request_reply(sock, msg, msg) != 0))
+ if ((r = ssh_request_reply(sock, msg, msg)) != 0)
goto out;
if ((r = sshbuf_get_u8(msg, &type)) != 0)
goto out;