In parse_prefix and parse_addr only touch the addr if the functions is
authorclaudio <claudio@openbsd.org>
Mon, 17 Apr 2023 12:48:38 +0000 (12:48 +0000)
committerclaudio <claudio@openbsd.org>
Mon, 17 Apr 2023 12:48:38 +0000 (12:48 +0000)
commit04fd5bf53233662bb5a64a5fc123cee003f157f4
treec880d1b35b113e51ffb114911dafd38112c68d0c
parenta7695e0238a1991be9b3e336d90c3d48cc9ffbfc
In parse_prefix and parse_addr only touch the addr if the functions is
successful. Do not clear it all the time since that breaks the ANYTOKEN
fallback since it resets the just set address on the next argument.
OK tb@
usr.sbin/bgpctl/parser.c