pike.git / lib / modules / Protocols.pmod / DNS.pmod

version» Context lines:

pike.git/lib/modules/Protocols.pmod/DNS.pmod:1639:    // Restore blocking state for udp->send() on retry.    udp->set_blocking();    }    // Failure.    return 0;    }       protected mapping low_gethostbyname(string s, int type)    {    mapping m; -  if(sizeof(domains) && s[-1] != '.' && sizeof(s/".") < 3) { +  if(sizeof(domains) && sizeof(s) && s[-1] != '.' && sizeof(s/".") < 3) {    mapping m = do_sync_query(mkquery(s, C_IN, type));    if(!m || !m->an || !sizeof(m->an))    foreach(domains, string domain)    {    m = do_sync_query(mkquery(s+"."+domain, C_IN, type));    if(m && m->an && sizeof(m->an))    break;    }    return m;    } else {