diff options
author | jcs@openbsd.org <jcs@openbsd.org> | 2023-03-09 22:06:24 +0100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2023-03-10 00:40:02 +0100 |
commit | 633d3dc2a1e9e2a013d019a0576a0771c8423713 (patch) | |
tree | b06f1bb6ad6891dcd2ede8b3ec70dfd9c4f1e8bb /authfd.c | |
parent | upstream: Re-split the merge of the reorder-hostkeys test. (diff) | |
download | openssh-633d3dc2a1e9e2a013d019a0576a0771c8423713.tar.xz openssh-633d3dc2a1e9e2a013d019a0576a0771c8423713.zip |
upstream: modify parentheses in conditionals to make it clearer what is
being assigned and what is being checked
ok djm dtucker
OpenBSD-Commit-ID: 19c10baa46ae559474409f75a5cb3d0eade7a9b8
Diffstat (limited to 'authfd.c')
-rw-r--r-- | authfd.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: authfd.c,v 1.132 2023/03/09 06:58:26 djm Exp $ */ +/* $OpenBSD: authfd.c,v 1.133 2023/03/09 21:06:24 jcs Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -490,8 +490,8 @@ encode_dest_constraint(struct sshbuf *m, const struct dest_constraint *dc) if ((b = sshbuf_new()) == NULL) return SSH_ERR_ALLOC_FAIL; - if ((r = encode_dest_constraint_hop(b, &dc->from) != 0) || - (r = encode_dest_constraint_hop(b, &dc->to) != 0) || + if ((r = encode_dest_constraint_hop(b, &dc->from)) != 0 || + (r = encode_dest_constraint_hop(b, &dc->to)) != 0 || (r = sshbuf_put_string(b, NULL, 0)) != 0) /* reserved */ goto out; if ((r = sshbuf_put_stringb(m, b)) != 0) |