[openssh-commits] [openssh] branch master updated: upstream: don't set the PerSourceNetBlockSize IPv6 mask if sscanf
git+noreply at mindrot.org
git+noreply at mindrot.org
Tue Nov 25 11:52:35 AEDT 2025
This is an automated email from the git hooks/post-receive script.
djm pushed a commit to branch master
in repository openssh.
The following commit(s) were added to refs/heads/master by this push:
new 6157e1c41 upstream: don't set the PerSourceNetBlockSize IPv6 mask if sscanf
6157e1c41 is described below
commit 6157e1c41071fb0f5621868c38861934284268b1
Author: djm at openbsd.org <djm at openbsd.org>
AuthorDate: Tue Nov 25 00:52:00 2025 +0000
upstream: don't set the PerSourceNetBlockSize IPv6 mask if sscanf
didn't decode it. From Mingjie Shen via GHPR598
OpenBSD-Commit-ID: c722014e735cbd87adb2fa968ce4c47b43cf98b0
---
servconf.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/servconf.c b/servconf.c
index 6d23c3686..6cdfb3cb6 100644
--- a/servconf.c
+++ b/servconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: servconf.c,v 1.436 2025/11/20 05:10:56 dtucker Exp $ */
+/* $OpenBSD: servconf.c,v 1.437 2025/11/25 00:52:00 djm Exp $ */
/*
* Copyright (c) 1995 Tatu Ylonen <ylo at cs.hut.fi>, Espoo, Finland
* All rights reserved
@@ -2044,7 +2044,8 @@ process_server_config_line_depth(ServerOptions *options, char *line,
filename, linenum, keyword);
if (*activep && options->per_source_masklen_ipv4 == -1) {
options->per_source_masklen_ipv4 = value;
- options->per_source_masklen_ipv6 = value2;
+ if (n == 2)
+ options->per_source_masklen_ipv6 = value2;
}
break;
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list