]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
network.subr: Fix infinite loop
authorCy Schubert <cy@FreeBSD.org>
Wed, 14 Dec 2022 21:41:10 +0000 (13:41 -0800)
committerCy Schubert <cy@FreeBSD.org>
Wed, 1 Feb 2023 02:53:11 +0000 (18:53 -0800)
commit40455909e124f41ba4b25194ed9991a1b71dce79
tree1a6eeca9f7cc82e06543553f095efce89f2ca033
parent3f89a29748755a6bd06d8bb1f3ed77aa9e2b6293
network.subr: Fix infinite loop

When setting up carp tunnel, using a password consisting of only the
characters used as hexadecimal characters, i.e. abc-def, there will be
an infinite loop in the shell function ifalias_af_common_handler().
To circumvent this we test for " pass ".

PR: 268378
Reported by: jyoung15@gmail.com
Differential Revision: https://reviews.freebsd.org/D37748

(cherry picked from commit e3e57edf4aac05d041ca55ff2f008c6109ef88d5)
libexec/rc/network.subr