Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Dec 2022 18:57:59 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 268378] parsing error in network.subr can result in infinite loop on bootup
Message-ID:  <bug-268378-227-MW8cFIw0dM@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-268378-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-268378-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268378

--- Comment #1 from jyoung15@gmail.com ---
Comment on attachment 238789
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D238789
network.subr ifalias_af_common_handler patch

>--- /etc/network.subr   2022-12-13 22:55:03.480523000 -0500
>+++ /etc/network.subr   2022-12-14 12:24:00.168988000 -0500
>@@ -1047,14 +1047,11 @@
>                esac
>        done
>        # Process the last component if any.
>-       if [ -n "$_tmpargs}" ]; then
>-               case $_tmpargs in
>-               ${_af}\ *[0-9a-fA-F]-*)
>+       if [ -n "$_tmpargs" ]; then
>+               if expr "$_tmpargs" : ${_af}' \{1,\}[0-9a-fA-F.:]\{1,\}-[0=
-9a-fA-F.:]\{1,\}/[0-9]\{1,\}' >/dev/null 2>&1; then
>                        ifalias_af_common_handler $_if $_af $_action \
>                        `ifalias_expand_addr $_af $_action ${_tmpargs#${_a=
f}\ }`
>-               ;;
>-               ${_af}\ *)
>+               elif expr "$_tmpargs" : "${_af} " >/dev/null 2>&1; then
>                        ${IFCONFIG_CMD} $_if $_tmpargs $_action && _ret=3D0
>-               ;;
>-               esac
>+               fi
>        fi
>
>        return $_ret

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-268378-227-MW8cFIw0dM>