diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2019-03-03 08:53:05 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2019-03-03 08:53:05 +0000 |
commit | 638bece11447a28e75ed7dd9d9f0178689a5b107 (patch) | |
tree | 22271e1ed57450f122f9aad1f61f69288737ad59 /regress/usr.sbin/bgpd | |
parent | ccd920d6daf527cde78a283947105c3b9f1de359 (diff) |
Adjust caller of sa2addr() so this compiles again.
Found by mbuhl at mbuhl dot me
Diffstat (limited to 'regress/usr.sbin/bgpd')
-rw-r--r-- | regress/usr.sbin/bgpd/unittests/rde_trie_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/usr.sbin/bgpd/unittests/rde_trie_test.c b/regress/usr.sbin/bgpd/unittests/rde_trie_test.c index fc78aac45c8..094b3b3d245 100644 --- a/regress/usr.sbin/bgpd/unittests/rde_trie_test.c +++ b/regress/usr.sbin/bgpd/unittests/rde_trie_test.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde_trie_test.c,v 1.9 2018/11/01 14:20:41 claudio Exp $ */ +/* $OpenBSD: rde_trie_test.c,v 1.10 2019/03/03 08:53:04 claudio Exp $ */ /* * Copyright (c) 2018 Claudio Jeker <claudio@openbsd.org> @@ -48,7 +48,7 @@ host_ip(const char *s, struct bgpd_addr *h, u_int8_t *len) hints.ai_flags = AI_NUMERICHOST; if (getaddrinfo(s, NULL, &hints, &res) == 0) { *len = res->ai_family == AF_INET6 ? 128 : 32; - sa2addr(res->ai_addr, h); + sa2addr(res->ai_addr, h, NULL); freeaddrinfo(res); } else { /* ie. for 10/8 parsing */ if ((bits = inet_net_pton(AF_INET, s, &h->v4, sizeof(h->v4))) == -1) |