~ubuntu-branches/ubuntu/intrepid/pdns/intrepid-security

« back to all changes in this revision

Viewing changes to pdns/resolver.cc

  • Committer: Bazaar Package Importer
  • Author(s): Debian PowerDNS Maintainers
  • Date: 2006-05-06 10:40:44 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20060506104044-v9hczzfl7dcri6qt
Tags: 2.9.20-3
Disable the recursor, this is in a separate package now.

Show diffs side-by-side

added added

removed removed

Lines of Context:
138
138
  p.spoofID(id);
139
139
 
140
140
  struct in_addr inp;
141
 
  Utility::inet_aton(ip.c_str(),&inp);
 
141
  if(!Utility::inet_aton(ip.c_str(),&inp))
 
142
    throw ResolverException("Unable to convert '"+ip+"' to an IP address");
142
143
 
143
144
  struct sockaddr_in toaddr;
144
145
  toaddr.sin_addr.s_addr=inp.s_addr;