diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2022-06-22 12:27:47 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2022-06-22 12:27:47 +0000 |
commit | e310576a0926cacda50c1d40af654a871b1e8252 (patch) | |
tree | 890a2424e2603b5ad25577ed7c14b1f431d62ea5 | |
parent | 59fd882ffddec83e90beadd1401ef0c19a5fe43b (diff) |
Fix last commit. addr is already a pointer.
Noticed by anton@
-rw-r--r-- | usr.sbin/bgpctl/parser.c | 4 |
1 files 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 <henning@openbsd.org> @@ -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); } |