diff options
author | Robert James Kaes <rjkaes@users.sourceforge.net> | 2000-03-11 20:37:44 +0000 |
---|---|---|
committer | Robert James Kaes <rjkaes@users.sourceforge.net> | 2000-03-11 20:37:44 +0000 |
commit | 10317d6701c01053bc31978aa2c50ca7e1b3a50c (patch) | |
tree | 3c945f8b7fb3bb53f7dd43c071ce2987bfe21840 /src/dnscache.c | |
parent | e5b99e549d21fbc1223fe037ab73af4f8130bfda (diff) |
Included the changes needed to re-add the upstream proxy option.
Diffstat (limited to 'src/dnscache.c')
-rw-r--r-- | src/dnscache.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dnscache.c b/src/dnscache.c index ecd7cee..7415114 100644 --- a/src/dnscache.c +++ b/src/dnscache.c @@ -1,4 +1,4 @@ -/* $Id: dnscache.c,v 1.1.1.1 2000-02-16 17:32:22 sdyoung Exp $ +/* $Id: dnscache.c,v 1.2 2000-03-11 20:37:44 rjkaes Exp $ * * This is a caching DNS system. When a host name is needed we look it up here * and see if there is already an answer for it. The domains are placed in a @@ -69,7 +69,6 @@ int lookup(struct in_addr *addr, char *domain) struct dnscache_s **rptr = &cache[box]; struct dnscache_s *ptr = cache[box]; - assert(addr); assert(domain); while (ptr && strcasecmp(ptr->domain, domain)) { @@ -90,7 +89,8 @@ int lookup(struct in_addr *addr, char *domain) /* chris - added this so that the routine can be used to just * look stuff up. */ - if (addr) *addr = ptr->ipaddr; + if (addr) + *addr = ptr->ipaddr; return 0; } |