Changeset c75dd6db81c100da919bdda1ec3793d8a1b65af8

Show
Ignore:
Timestamp:
07/13/12 19:08:00 (2 years ago)
Author:
Theo Schlossnagle <jesus@lethargy.org>
git-committer:
Theo Schlossnagle <jesus@lethargy.org> 1342206480 -0700
git-parent:

[eb4ac2ff2b9e0b43b1aa254fde4f3106f8d5386c], [d6cfbe8afb3c292e247d654e03cf82247196f51d]

git-author:
Theo Schlossnagle <jesus@lethargy.org> 1342206480 -0700
Message:

Merge pull request #89 from rphillips/bugfix/dns_crash

dns: fix crash on invalid dns server

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/modules/dns.c

    rb5631fa rd6cfbe8  
    346346  eventer_t e = NULL, newe = NULL; 
    347347  if(ctx == NULL) { 
    348     if(h->timeout) e = eventer_remove(h->timeout); 
     348    if(h && h->timeout) e = eventer_remove(h->timeout); 
    349349  } 
    350350  else { 
     
    364364  if(e) eventer_free(e); 
    365365  if(newe) eventer_add(newe); 
    366   h->timeout = newe; 
     366  if(h) h->timeout = newe; 
    367367} 
    368368