From f7a98cdecf2f48d938db40bf14877d48e1bbb256 Mon Sep 17 00:00:00 2001 From: claudio Date: Wed, 22 Jun 2022 12:27:46 +0000 Subject: [PATCH] Fix last commit. addr is already a pointer. Noticed by anton@ --- usr.sbin/bgpctl/parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/bgpctl/parser.c b/usr.sbin/bgpctl/parser.c index 17cfe1ab267..ce861f6979b 100644 --- a/usr.sbin/bgpctl/parser.c +++ b/usr.sbin/bgpctl/parser.c @@ -1,4 +1,4 @@ -/* $OpenBSD: parser.c,v 1.112 2022/06/21 10:05:48 claudio Exp $ */ +/* $OpenBSD: parser.c,v 1.113 2022/06/22 12:27:46 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer @@ -977,7 +977,7 @@ parse_prefix(const char *word, size_t wordlen, struct bgpd_addr *addr, return (0); } - applymask(&addr, &addr, mask); + applymask(addr, addr, mask); *prefixlen = mask; return (1); } -- 2.20.1