Glen Carreras wrote:
> Hello,
> I recently upgraded to SA 3.1.0 after running error free on SA 3.0.4 on
> a Win32/Cygwin setup.  I've noticed that now my log fills with similar
> entries to what I have posted below.  I've looked in DnsResolver.pm and
> can't make heads or tails of what is actually failing.  I've been
> googling for an answer for quite some time along with searching bugzilla
> for something similar and it appears this is not a common errror (at
> least not yet).  Could someone help decipher this for me?  What might be
> causing it?  DNS testing works fine as reported by running SA in debug
> mode.

Looks like a borked debug statement.

Line 376 is the "dbg" line at the end of this code snippet:

--------------------------
  if (defined $packet &&
      defined $packet->header &&
      defined $packet->question &&
      defined $packet->answer)
  {
    my $id = $self->_packet_id($packet);

    my $cb = delete $self->{id_to_callback}->{$id};
    if (!$cb) {
      dbg("dns: no callback for id: $id, ignored; packet: ".
                                $packet->string);
      return 0;
    }

    $cb->($packet, $id);
    return 1;
  }
  else {
    dbg("dns: no packet! err=$err packet=".$packet->string);
  }
--------------------------


Hmm, so if packet isn't defined, let's try to use it's members in generating an
error message.. Gee, I wonder why that doesn't work...

Whoops.



Reply via email to