summaryrefslogtreecommitdiff
path: root/usr.bin/ssh
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@cvs.openbsd.org>2016-05-04 14:00:10 +0000
committerDarren Tucker <dtucker@cvs.openbsd.org>2016-05-04 14:00:10 +0000
commit0a701e785216a9c050e18444d98fe33bb53e3196 (patch)
tree6280b2de8931905b7effcb788e676f1d8f4f15ab /usr.bin/ssh
parente68f5b69366930e3f289b0d36579e5c5f0fa57f7 (diff)
Fix inverted logic for updating StreamLocalBindMask which would cause the
server to set an invalid mask. ok djm@
Diffstat (limited to 'usr.bin/ssh')
-rw-r--r--usr.bin/ssh/servconf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/servconf.c b/usr.bin/ssh/servconf.c
index 631dc538598..527f54d5cdf 100644
--- a/usr.bin/ssh/servconf.c
+++ b/usr.bin/ssh/servconf.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: servconf.c,v 1.289 2016/05/03 15:57:39 djm Exp $ */
+/* $OpenBSD: servconf.c,v 1.290 2016/05/04 14:00:09 dtucker Exp $ */
/*
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
* All rights reserved
@@ -1960,7 +1960,7 @@ copy_set_server_options(ServerOptions *dst, ServerOptions *src, int preauth)
* M_CP_INTOPT - it does a signed comparison that causes compiler
* warnings.
*/
- if (src->fwd_opts.streamlocal_bind_mask == (mode_t)-1) {
+ if (src->fwd_opts.streamlocal_bind_mask != (mode_t)-1) {
dst->fwd_opts.streamlocal_bind_mask =
src->fwd_opts.streamlocal_bind_mask;
}