From 5e75dcabc24f02dc881df79add94c6749ce6f43f Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Sat, 30 Dec 2000 07:02:50 +0000 Subject: Revert last rev: it changed the default behavior (which could be easily corrected), and it caused zwgc to read /etc/athena/zephyr.vars and .zephyr.vars for each incoming packet, which is both a performance issue and a source of unpredictability if the user loses access to his or her homedir. Note that the underlying privacy issue remains a problem. --- zwgc/main.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'zwgc') diff --git a/zwgc/main.c b/zwgc/main.c index c4d1e42..83413da 100644 --- a/zwgc/main.c +++ b/zwgc/main.c @@ -325,21 +325,8 @@ void notice_handler(notice) ZNotice_t *notice; { struct hostent *fromhost = NULL; - char *resolved_addresses; - int bool_result; - - resolved_addresses = ZGetVariable("resolved_addresses"); - if (!resolved_addresses) - bool_result = 0; - else if (!strcmp(resolved_addresses, "all")) - bool_result = 1; - else if (!strcmp(resolved_addresses, "none")) - bool_result = 0; - else - bool_result = ed_regexp_match_p(inet_ntoa(notice->z_sender_addr), - resolved_addresses); - if (notice->z_sender_addr.s_addr && bool_result) { + if (notice->z_sender_addr.s_addr) { #ifdef HAVE_ARES ares_gethostbyaddr(achannel, &(notice->z_sender_addr), sizeof(notice->z_sender_addr), AF_INET, -- cgit v1.2.3