Ethereal-cvs: [ethereal-cvs] cvs commit: ethereal packet-dns.c

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Wed, 12 Apr 2000 01:59:40 -0500 (CDT)
guy         2000/04/12 01:59:35 CDT

  Modified files:
    .                    packet-dns.c 
  Log:
  Catch "loops" in compressed DNS names the same way the BSD DNS resolver,
  and BIND, do, by counting the number of characters we look at and, if
  when we see a pointer, we see we've already looked at as many characters
  as there are in the DNS packet, we conclude that we're looping.
  
  Also, check for pointers that point past the end of the packet (not just
  past the end of the captured portion of the packet, i.e. cases where we
  didn't capture all of the packet, but cases where the packet is actually
  malformed).
  
  Revision  Changes    Path
  1.42      +21 -5     ethereal/packet-dns.c