From 7a0e44998f426752c58975ae686d8e88aa131195 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Sat, 11 May 2024 15:58:48 +0200 Subject: added error handler per connection type; improved handlers API and error reporting --- ecp/server/dir.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ecp/server/dir.c') diff --git a/ecp/server/dir.c b/ecp/server/dir.c index 03474df..149d14d 100644 --- a/ecp/server/dir.c +++ b/ecp/server/dir.c @@ -990,7 +990,7 @@ int dir_init(ECPSocket *sock) { pthread_rwlock_destroy(&dir_shadow_rwlock); return ECP_ERR_ALLOC; } - ecp_conn_handler_init(handler, dir_handle_msg, NULL, NULL, NULL); + ecp_conn_handler_init(handler, NULL, NULL, dir_handle_msg, NULL); if (is_dir) { c_handler = malloc(sizeof(ECPConnHandler)); @@ -1005,7 +1005,7 @@ int dir_init(ECPSocket *sock) { if (c_handler) free(c_handler); return ECP_ERR_ALLOC; } - ecp_conn_handler_init(c_handler, dir_handle_client_msg, NULL, NULL, NULL); + ecp_conn_handler_init(c_handler, NULL, NULL, dir_handle_client_msg, NULL); memset(dir_online, 0, sizeof(DIROnline)); } -- cgit v1.2.3