summaryrefslogtreecommitdiff
path: root/accel-pptpd/radius/dict.c
diff options
context:
space:
mode:
authorKozlov Dmitry <dima@server>2010-10-11 18:19:37 +0400
committerKozlov Dmitry <dima@server>2010-10-11 18:19:37 +0400
commitaebda049dcd1999080d52c813a40cc85f8377d04 (patch)
treebe0223170f664eab1745784a6d895080fff8a9eb /accel-pptpd/radius/dict.c
parent42972cf14d2efcfec6902bce896cde43f4242935 (diff)
downloadaccel-ppp-aebda049dcd1999080d52c813a40cc85f8377d04.tar.gz
accel-ppp-aebda049dcd1999080d52c813a40cc85f8377d04.zip
started work on L2TPv2 server
Diffstat (limited to 'accel-pptpd/radius/dict.c')
-rw-r--r--accel-pptpd/radius/dict.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/accel-pptpd/radius/dict.c b/accel-pptpd/radius/dict.c
index 54cf895e..0d63a838 100644
--- a/accel-pptpd/radius/dict.c
+++ b/accel-pptpd/radius/dict.c
@@ -79,7 +79,7 @@ static int dict_load(const char *fname)
f = fopen(fname, "r");
if (!f) {
- log_error("radius: open dictioanary '%s': %s\n", fname, strerror(errno));
+ log_emerg("radius: open dictioanary '%s': %s\n", fname, strerror(errno));
return -1;
}
@@ -94,7 +94,7 @@ static int dict_load(const char *fname)
if (!strcmp(buf, "BEGIN-VENDOR")) {
vendor = rad_dict_find_vendor_name(ptr[0]);
if (!vendor) {
- log_error("radius:%s:%i: vendor not found\n", fname, n);
+ log_emerg("radius:%s:%i: vendor not found\n", fname, n);
goto out_err;
}
items = &vendor->items;
@@ -156,13 +156,13 @@ static int dict_load(const char *fname)
else if (!strcmp(ptr[2], "octets"))
attr->type = ATTR_TYPE_OCTETS;
else {
- log_error("radius:%s:%i: unknown attribute type\n", fname, n);
+ log_emerg("radius:%s:%i: unknown attribute type\n", fname, n);
goto out_err;
}
} else if (!strcmp(buf, "VALUE")) {
attr = find_attr(items, ptr[0]);
if (!attr) {
- log_error("radius:%s:%i: unknown attribute\n", fname, n);
+ log_emerg("radius:%s:%i: unknown attribute\n", fname, n);
goto out_err;
}
val = malloc(sizeof(*val));
@@ -200,7 +200,7 @@ static int dict_load(const char *fname)
return 0;
out_err_syntax:
- log_error("radius:%s:%i: syntaxis error\n", fname, n);
+ log_emerg("radius:%s:%i: syntaxis error\n", fname, n);
out_err:
fclose(f);
return -1;