diff options
author | YASUOKA Masahiko <yasuoka@cvs.openbsd.org> | 2012-06-05 06:31:28 +0000 |
---|---|---|
committer | YASUOKA Masahiko <yasuoka@cvs.openbsd.org> | 2012-06-05 06:31:28 +0000 |
commit | 5e39bad13789bed23a7c87fb229dd09eeb9849e2 (patch) | |
tree | 1f983a0cb47009b549a0e9688382dfca95934db3 /usr.sbin | |
parent | 0ee76eef19d15814be6dd4399575fc194c45fdfb (diff) |
don't use `reigai' that means `exception' in Japanese as labels.
no binary change.
from Michael W. Bombardieri
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/npppd/npppd/npppd_auth.c | 16 | ||||
-rw-r--r-- | usr.sbin/npppd/npppd/npppd_radius.c | 22 |
2 files changed, 19 insertions, 19 deletions
diff --git a/usr.sbin/npppd/npppd/npppd_auth.c b/usr.sbin/npppd/npppd/npppd_auth.c index d811e48989c..c06f3a7d3a1 100644 --- a/usr.sbin/npppd/npppd/npppd_auth.c +++ b/usr.sbin/npppd/npppd/npppd_auth.c @@ -1,4 +1,4 @@ -/* $OpenBSD: npppd_auth.c,v 1.8 2012/05/08 13:15:11 yasuoka Exp $ */ +/* $OpenBSD: npppd_auth.c,v 1.9 2012/06/05 06:31:27 yasuoka Exp $ */ /*- * Copyright (c) 2009 Internet Initiative Japan Inc. @@ -26,7 +26,7 @@ * SUCH DAMAGE. */ /**@file authentication realm */ -/* $Id: npppd_auth.c,v 1.8 2012/05/08 13:15:11 yasuoka Exp $ */ +/* $Id: npppd_auth.c,v 1.9 2012/06/05 06:31:27 yasuoka Exp $ */ /* I hope to write the source code in npppd-independent as possible. */ #include <sys/types.h> #include <sys/stat.h> @@ -102,13 +102,13 @@ npppd_auth_create(int auth_type, const char *label, void *_npppd) base->npppd = _npppd; if ((_this->rad_auth_setting = radius_req_setting_create()) == NULL) - goto radius_reigai; + goto radius_fail; if ((_this->rad_acct_setting = radius_req_setting_create()) == NULL) - goto radius_reigai; + goto radius_fail; return base; -radius_reigai: +radius_fail: if (_this->rad_auth_setting != NULL) radius_req_setting_destroy( _this->rad_auth_setting); @@ -783,10 +783,10 @@ npppd_auth_radius_reload(npppd_auth_base *base) _this->rad_auth_setting->curr_server = 0; if ((nauth = radius_loadconfig(base, _this->rad_auth_setting, RADIUS_SERVER_TYPE_AUTH)) < 0) - goto reigai; + goto fail; if ((nacct = radius_loadconfig(base, _this->rad_acct_setting, RADIUS_SERVER_TYPE_ACCT)) < 0) - goto reigai; + goto fail; for (i = 0; i < countof(_this->rad_auth_setting->server); i++) { if (_this->rad_auth_setting->server[i].enabled) @@ -800,7 +800,7 @@ npppd_auth_radius_reload(npppd_auth_base *base) _this->rad_auth_setting->timeout); return 0; -reigai: +fail: npppd_auth_destroy(base); return 1; diff --git a/usr.sbin/npppd/npppd/npppd_radius.c b/usr.sbin/npppd/npppd/npppd_radius.c index b9c9fb7d6a6..02db2dd8fbc 100644 --- a/usr.sbin/npppd/npppd/npppd_radius.c +++ b/usr.sbin/npppd/npppd/npppd_radius.c @@ -1,4 +1,4 @@ -/* $Id: npppd_radius.c,v 1.3 2012/01/18 03:13:04 yasuoka Exp $ */ +/* $Id: npppd_radius.c,v 1.4 2012/06/05 06:31:27 yasuoka Exp $ */ /*- * Copyright (c) 2009 Internet Initiative Japan Inc. * All rights reserved. @@ -170,12 +170,12 @@ npppd_ppp_radius_acct_reqcb(void *context, RADIUS_PACKET *pkt, int flags, #define ATTR_INT32(_a,_v) \ do { \ if (radius_put_uint32_attr(radpkt, (_a), (_v)) != 0) \ - goto reigai; \ + goto fail; \ } while (0 /* CONSTCOND */) #define ATTR_STR(_a,_v) \ do { \ if (radius_put_string_attr(radpkt, (_a), (_v)) != 0) \ - goto reigai; \ + goto fail; \ } while (0 /* CONSTCOND */) static int @@ -196,18 +196,18 @@ radius_acct_request(npppd *pppd, npppd_ppp *ppp, int stop) return 0; if ((radpkt = radius_new_request_packet(RADIUS_CODE_ACCOUNTING_REQUEST)) == NULL) - goto reigai; + goto fail; if (radius_prepare(rad_setting, (void *)(uintptr_t)ppp->id, &radctx, npppd_ppp_radius_acct_reqcb, 0) != 0) - goto reigai; + goto fail; /* NAS Information */ /* * RFC 2865 "5.4. NAS-IP-Address" or RFC 3162 "2.1. NAS-IPv6-Address" */ if (radius_prepare_nas_address(rad_setting, radpkt) != 0) - goto reigai; + goto fail; /* RFC 2865 "5.41. NAS-Port-Type" */ ATTR_INT32(RADIUS_TYPE_NAS_PORT_TYPE, RADIUS_NAS_PORT_TYPE_VIRTUAL); @@ -226,13 +226,13 @@ radius_acct_request(npppd *pppd, npppd_ppp *ppp, int stop) /* RFC 2868 3.1. Tunnel-Type */ ATTR_INT32(RADIUS_TYPE_TUNNEL_TYPE, RADIUS_TUNNEL_TYPE_L2TP); if (l2tp_put_tunnel_attributes(radpkt, ppp->phy_context) != 0) - goto reigai; + goto fail; break; case PPP_TUNNEL_PPTP: /* RFC 2868 3.1. Tunnel-Type */ ATTR_INT32(RADIUS_TYPE_TUNNEL_TYPE, RADIUS_TUNNEL_TYPE_PPTP); if (pptp_put_tunnel_attributes(radpkt, ppp->phy_context) != 0) - goto reigai; + goto fail; break; } @@ -311,7 +311,7 @@ radius_acct_request(npppd *pppd, npppd_ppp *ppp, int stop) return 0; -reigai: +fail: ppp_log(ppp, LOG_WARNING, "radius accounting request failed: %m"); if (radctx != NULL) @@ -373,7 +373,7 @@ pptp_put_tunnel_attributes(RADIUS_PACKET *radpkt, void *call0) ATTR_STR(RADIUS_TYPE_ACCT_TUNNEL_CONNECTION, buf); return 0; -reigai: +fail: #endif return 1; } @@ -429,7 +429,7 @@ l2tp_put_tunnel_attributes(RADIUS_PACKET *radpkt, void *call0) ATTR_STR(RADIUS_TYPE_ACCT_TUNNEL_CONNECTION, buf); return 0; -reigai: +fail: #endif return 1; } |