You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
457 B

  1. --- a/key.dns_resolver.c
  2. +++ b/key.dns_resolver.c
  3. @@ -717,12 +717,12 @@ int main(int argc, char *argv[])
  4. keyend = buf + ktlen + 1;
  5. /* the actual key description follows the last semicolon */
  6. - keyend = rindex(keyend, ';');
  7. + keyend = strrchr(keyend, ';');
  8. if (!keyend)
  9. error("Invalid key description: %s", buf);
  10. keyend++;
  11. - name = index(keyend, ':');
  12. + name = strchr(keyend, ':');
  13. if (!name)
  14. dns_query_a_or_aaaa(keyend, callout_info);