Changeset d6cfbe8afb3c292e247d654e03cf82247196f51d

Show
Ignore:
Timestamp:
07/13/12 17:56:20 (6 years ago)
Author:
Ryan Phillips <ryan.phillips@rackspace.com>
git-committer:
Ryan Phillips <ryan.phillips@rackspace.com> 1342202180 -0500
git-parent:

[eb4ac2ff2b9e0b43b1aa254fde4f3106f8d5386c]

git-author:
Ryan Phillips <ryan.phillips@rackspace.com> 1342202180 -0500
Message:

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