diff options
author | Florian Obser <florian@cvs.openbsd.org> | 2022-10-15 13:27:46 +0000 |
---|---|---|
committer | Florian Obser <florian@cvs.openbsd.org> | 2022-10-15 13:27:46 +0000 |
commit | 34e1ba9d1061c779a80ebb73be4d5149e35bde64 (patch) | |
tree | f62eeaaf647af0982901d168f8bb778edededba9 /usr.sbin/rad | |
parent | 08fdbcc067cab5550420c567addb08297cb5c8aa (diff) |
Do not throw away errno.
Pointed out in the pref64 code, which was copied from here, by kn.
Diffstat (limited to 'usr.sbin/rad')
-rw-r--r-- | usr.sbin/rad/parse.y | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/rad/parse.y b/usr.sbin/rad/parse.y index 2d4812a2dd5..6ebd4eeb5d3 100644 --- a/usr.sbin/rad/parse.y +++ b/usr.sbin/rad/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.20 2022/10/15 13:26:15 florian Exp $ */ +/* $OpenBSD: parse.y,v 1.21 2022/10/15 13:27:45 florian Exp $ */ /* * Copyright (c) 2018 Florian Obser <florian@openbsd.org> @@ -941,7 +941,7 @@ copy_dns_options(const struct ra_options_conf *src, struct ra_options_conf *dst) if (SIMPLEQ_EMPTY(&dst->ra_rdnss_list)) { SIMPLEQ_FOREACH(ra_rdnss, &src->ra_rdnss_list, entry) { if ((nra_rdnss = calloc(1, sizeof(*nra_rdnss))) == NULL) - errx(1, "%s", __func__); + err(1, "%s", __func__); memcpy(nra_rdnss, ra_rdnss, sizeof(*nra_rdnss)); SIMPLEQ_INSERT_TAIL(&dst->ra_rdnss_list, nra_rdnss, entry); @@ -951,7 +951,7 @@ copy_dns_options(const struct ra_options_conf *src, struct ra_options_conf *dst) if (SIMPLEQ_EMPTY(&dst->ra_dnssl_list)) { SIMPLEQ_FOREACH(ra_dnssl, &src->ra_dnssl_list, entry) { if ((nra_dnssl = calloc(1, sizeof(*nra_dnssl))) == NULL) - errx(1, "%s", __func__); + err(1, "%s", __func__); memcpy(nra_dnssl, ra_dnssl, sizeof(*nra_dnssl)); SIMPLEQ_INSERT_TAIL(&dst->ra_dnssl_list, nra_dnssl, entry); @@ -1063,7 +1063,7 @@ conf_get_ra_prefix(struct in6_addr *addr, int prefixlen) prefix = calloc(1, sizeof(*prefix)); if (prefix == NULL) - errx(1, "%s: calloc", __func__); + err(1, "%s", __func__); prefix->prefixlen = prefixlen; prefix->vltime = ADV_VALID_LIFETIME; prefix->pltime = ADV_PREFERRED_LIFETIME; |