From ad743c1e41635a903aed50935afcb411f8388408 Mon Sep 17 00:00:00 2001 From: Robert James Kaes Date: Mon, 22 Oct 2001 15:56:11 +0000 Subject: Fixed a problem where a user's variable would be uninitialized if a DNS lookup failed. --- ChangeLog | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 4c9cbeb..2570a1e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2001-10-22 Robert James Kaes + + * src/sock.c (getpeer_string): + * src/sock.c (getpeer_ip): When the DNS lookup fails, we need to + initialized the user's buffer to an empty string; otherwise, the + user's buffer will contain garbage and cause a SEGFAULT. Thanks to + Jeffrey Wheelhouse for finding this bug. + 2001-10-18 Robert James Kaes * src/reqs.c (connect_to_upstream): Moved the code needed to -- cgit v1.2.3