Skip to content

Instantly share code, notes, and snippets.

@stiletto
Created February 23, 2012 19:36
Show Gist options
  • Save stiletto/1894573 to your computer and use it in GitHub Desktop.
Save stiletto/1894573 to your computer and use it in GitHub Desktop.
--- out.c.orig 2011-06-01 02:11:37.000000000 +0400
+++ out.c 2012-02-23 17:04:21.000000000 +0400
@@ -1136,15 +1136,15 @@
xhash_free(query->hosts);
query->hosts = NULL;
- if (idna_to_unicode_8z8z(query->name, &domain, 0) != IDNA_SUCCESS)
+ /*if (idna_to_unicode_8z8z(query->name, &domain, 0) != IDNA_SUCCESS)
{
log_write(query->s2s->log, LOG_ERR, "idna dns decode for %s failed", query->name);
- /* fake empty results to shortcut resolution failure */
+ // fake empty results to shortcut resolution failure
xhash_free(query->results);
query->results = xhash_new(71);
- query->expiry = time(NULL) + 99999999;
+ query->expiry = time(NULL) + 99999999;*/
domain = strdup(query->name);
- }
+ /*}*/
out_resolve(query->s2s, domain, query->results, query->expiry);
free(domain);
free(query->name);
@@ -1157,14 +1157,15 @@
query->s2s = s2s;
query->results = xhash_new(71);
- if (idna_to_ascii_8z(dns->name, &query->name, 0) != IDNA_SUCCESS)
+ query->name = strdup(dns->name);
+ /*if (idna_to_ascii_8z(dns->name, &query->name, 0) != IDNA_SUCCESS)
{
- log_write(s2s->log, LOG_ERR, "idna dns encode for %s failed", dns->name);
+ log_write(s2s->log, LOG_ERR, "idna dns encode for %s failed", dns->name);*/
/* shortcut resolution failure */
- query->expiry = time(NULL) + 99999999;
+ /* query->expiry = time(NULL) + 99999999;
out_resolve(query->s2s, dns->name, query->results, query->expiry);
return;
- }
+ }*/
query->hosts = xhash_new(71);
query->srv_i = -1;
query->expiry = 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment