Changeset dd420f2b520fa3440154229a94853621fd202434

Show
Ignore:
Timestamp:
09/27/11 03:17:18 (3 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1317093438 -0400
git-parent:

[623c1eeb060a39fecf5b30f322375c0efd49d1cd]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1317093438 -0400
Message:

this can be null -- which simply doesn't change flags

Files:

Legend:

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

    r16b1bdd rdd420f2  
    109109noit_calc_rtype_flag(char *resolve_rtype) { 
    110110  int flags = 0; 
    111   flags |= strcmp(resolve_rtype, PREFER_IPV6) == 0 || 
    112            strcmp(resolve_rtype, FORCE_IPV6) == 0 ? NP_PREFER_IPV6 : 0; 
    113   flags |= strcmp(resolve_rtype, FORCE_IPV4) == 0 || 
    114            strcmp(resolve_rtype, FORCE_IPV6) == 0 ? NP_SINGLE_RESOLVE : 0; 
     111  if(resolve_rtype) { 
     112    flags |= strcmp(resolve_rtype, PREFER_IPV6) == 0 || 
     113             strcmp(resolve_rtype, FORCE_IPV6) == 0 ? NP_PREFER_IPV6 : 0; 
     114    flags |= strcmp(resolve_rtype, FORCE_IPV4) == 0 || 
     115             strcmp(resolve_rtype, FORCE_IPV6) == 0 ? NP_SINGLE_RESOLVE : 0; 
     116  } 
    115117  return flags; 
    116118}