aboutsummaryrefslogtreecommitdiff
path: root/server.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2024-06-10 10:25:54 +0000
committerOmar Polo <op@omarpolo.com>2024-06-10 10:25:54 +0000
commit22ce7eb4557cf6a9ed3551531908880bd83f3001 (patch)
treef57190191748dcdc833cd5e4a8b16ad5acc2ed2b /server.c
parent09651629594e0b367414cf5bcb0c5820c3b904f8 (diff)
use a fatalx() rather than abort()
makes up for a nicer error message, and easier troubleshoot.
Diffstat (limited to 'server.c')
-rw-r--r--server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.c b/server.c
index a29fdd8..22f8915 100644
--- a/server.c
+++ b/server.c
@@ -390,7 +390,7 @@ handle_handshake(int fd, short ev, void *d)
return;
default:
/* unreachable */
- abort();
+ fatalx("unexpected return value from tls_handshake");
}
c->bev = bufferevent_new(fd, client_read, client_write,