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

version» Context lines:

pike.git/lib/modules/Protocols.pmod/DNS.pmod:336:    if(domain)    domains = ({ domain }) + domains;    domains = Array.map(domains, lambda(string d) {    if (d[-1] == '.') {    return d[..sizeof(d)-2];    }    return d;    });    } else {    if(arrayp(server)) -  nameservers= server; +  nameservers = server;    else -  nameservers= ({ server }); +  nameservers = ({ server });       if(arrayp(domain))    domains = domain;    else    if(stringp(domain))    domains = ({ domain });       }    }   
pike.git/lib/modules/Protocols.pmod/DNS.pmod:541:    if(time() - requests[lid]->timestamp > GIVE_UP_DELAY)    {   #if constant(thread_create)    // We need to unlock the lock for the remove operation...    destruct(key);   #endif /* constant(thread_create) */    remove(requests[lid]);   #if constant(thread_create)    key=lock::lock();   #endif /* constant(thread_create) */ -  if(requests[lid]) continue; +  if(requests[lid]) continue; /* Another thread has stolen lid */    }else{    continue;    }    }    break;    }       if(requests[lid])    {    /* We failed miserably to find a request id to use,