diff options
author | 2016-05-04 14:00:09 +0000 | |
---|---|---|
committer | 2016-05-04 14:00:09 +0000 | |
commit | 97abdf454ccb0d339002bda09020dee0caad4f3e (patch) | |
tree | 56549402d714ea3b8fe5ab0672bbe657da0ebffd | |
parent | Preserve DiffServ value when fragmenting an ipv4 packet. (diff) | |
download | wireguard-openbsd-97abdf454ccb0d339002bda09020dee0caad4f3e.tar.xz wireguard-openbsd-97abdf454ccb0d339002bda09020dee0caad4f3e.zip |
Fix inverted logic for updating StreamLocalBindMask which would cause the
server to set an invalid mask. ok djm@
-rw-r--r-- | usr.bin/ssh/servconf.c | 4 |
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; } |