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

version» Context lines:

pike.git/lib/modules/Protocols.pmod/DNS.pmod:1125:    */    if(!next_client)    next_client=async_client(nameservers,domains);       next_client->do_query(domain, cl, type, callback, @args);    }       static private void rec_data(mapping m)    {    mixed err; +  object r;    mapping res;    if (err = catch {    if(m->port != 53 || !has_value(nameservers, m->ip)) return;    sscanf(m->data,"%2c",int id); -  object r=requests[id]; +  r = requests[id];    if(!r) return;    m_delete(requests,id);    res = decode_res(m->data);    }) {    werror("DNS: Failed to read UDP packet. Connection refused?\n%s\n",    describe_backtrace(err));    }    // NB: The callback may have gone away during our processing.    // Don't complain if that is the case.    if (r->callback && (err = catch {