The project "Citadel server, clients, utilities":
The branch, master has been updated
via b29eb5eaf8a7e1a5639df67f92faa509df2d59cc (commit)
from 9898d4501844a263451d0ab3f40a3e6c78d1aefe (commit)
- Log -----------------------------------------------------------------
commit b29eb5eaf8a7e1a5639df67f92faa509df2d59cc
Author: Harlow Solutions <[email protected]>
Date: Mon Apr 7 01:30:23 2025 -0400
Add error checking to locate_host() and return truncated host name rather than
blank.
Encountered core dump from getnameinfo() during DOS attack. From dump, looked
like getpeername()
must have errored and address data was corupted.
When the return buffer for getnameinfo() is too small or errors, the function
does not put anything into the buffer.
Switched to using a large buffer and then copying so it should never truncate
and am able to copy truncated name.
-----------------------------------------------------------------------
Summary of changes:
citadel/server/context.c | 1 -
citadel/server/locate_host.c | 20 ++++++++++++++++----
2 files changed, 16 insertions(+), 5 deletions(-)
--
Citadel server, clients, utilities