Changeset f8c63e9fdef637cbef40fa8f4535742dce17d609

Show
Ignore:
Timestamp:
02/18/11 22:42:03 (3 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1298068923 +0000
git-parent:

[4135087760a0c7f5d7c6b345c2cd6b2a297b7cab]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1298068923 +0000
Message:

fix initialization order... default config ships with dns modules enabled -- it did initialization. if you don't load that module, you crash without this code

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/noit_check_resolver.c

    rb9e1ddf rf8c63e9  
    479479void noit_check_resolver_init() { 
    480480  eventer_t e; 
     481  if(dns_init(NULL, 0) < 0) 
     482    noitL(noit_error, "dns initialization failed.\n"); 
    481483  dns_ctx = dns_new(NULL); 
    482484  if(dns_init(dns_ctx, 0) != 0 ||