summaryrefslogtreecommitdiff
path: root/lib/err.c
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2011-02-19 18:55:51 +0100
committerLinus Nordberg <linus@nordu.net>2011-02-19 18:55:51 +0100
commite0749025f259754aa031d997457a308686136909 (patch)
treea0c9c98e09c6089c780f06053e9abbaec4a24438 /lib/err.c
parent020e7688d91f2db00d1b573c8496119ede15e773 (diff)
Improve protocol robustness and invoke user callbacks.
All aborts are removed, as well as all asserts which aren't programming errors. When an invalid packet is received, the connection is closed, as per draft-ietf-radext-tcp-transport-08 (2.6.4). Use new rs_debug() macro rather than fprintf() for debug printouts. Coding style overhaul.
Diffstat (limited to 'lib/err.c')
-rw-r--r--lib/err.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/err.c b/lib/err.c
index d111115..a7ddeb9 100644
--- a/lib/err.c
+++ b/lib/err.c
@@ -21,12 +21,12 @@ static const char *_errtxt[] = {
"bad hostname or port", /* 7 RSE_BADADDR */
"no peer configured", /* 8 RSE_NOPEER */
"libevent error", /* 9 RSE_EVENT */
- "connection error", /* 10 RSE_CONNERR */
+ "socket error", /* 10 RSE_SOCKERR */
"invalid configuration file", /* 11 RSE_CONFIG */
"authentication failed", /* 12 RSE_BADAUTH */
"internal error", /* 13 RSE_INTERNAL */
"SSL error", /* 14 RSE_SSLERR */
- "ERR 15", /* RSE_ */
+ "invalid packet", /* 15 RSE_INVALID_PKT */
"ERR 16", /* RSE_ */
"ERR 17", /* RSE_ */
"ERR 18", /* RSE_ */