diff options
author | Greg Hudson <ghudson@mit.edu> | 2000-12-30 07:02:50 +0000 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2000-12-30 07:02:50 +0000 |
commit | 5e75dcabc24f02dc881df79add94c6749ce6f43f (patch) | |
tree | e40bcc859e2185dbf7ad82eeb7e5cce061bc475d /zwgc | |
parent | eed6c644ac248ef430fcc9c116ada5b9a748ece6 (diff) |
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.
Diffstat (limited to 'zwgc')
-rw-r--r-- | zwgc/main.c | 15 |
1 files changed, 1 insertions, 14 deletions
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, |