From: claudio Date: Wed, 22 Jun 2022 12:27:46 +0000 (+0000) Subject: Fix last commit. addr is already a pointer. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=f7a98cdecf2f48d938db40bf14877d48e1bbb256;p=openbsd Fix last commit. addr is already a pointer. Noticed by anton@ --- 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); }