lwdgrbn.c revision 9ce9834a57b5bdc1fb27aa78d7e8010bd46db714
#include <config.h>
#include <dns/rdataset.h>
#include <named/lwdclient.h>
#include <named/lwsearch.h>
static void start_lookup(ns_lwdclient_t *);
static void
isc_region_t r;
isc_buffer_t b;
int i;
if (result != ISC_R_SUCCESS) {
switch (result) {
case DNS_R_NXDOMAIN:
case DNS_R_NCACHENXDOMAIN:
if (result != ISC_R_SUCCESS)
else {
return;
}
break;
case DNS_R_NXRRSET:
case DNS_R_NCACHENXRRSET:
break;
default:
}
return;
}
b = client->recv_buffer;
if (sigrdataset != NULL)
else
if (result != ISC_R_SUCCESS)
goto out;
goto out;
goto out;
i = 0;
result == ISC_R_SUCCESS;
{
dns_rdata_toregion(&rdata, &r);
i++;
}
sizeof(unsigned char *));
goto out;
sizeof(lwres_uint16_t));
goto out;
if (sigrdataset != NULL) {
i = 0;
result == ISC_R_SUCCESS;
{
dns_rdata_toregion(&rdata, &r);
i++;
}
}
/*
* Render the packet.
*/
if (lwresult != LWRES_R_SUCCESS)
goto out;
if (result != ISC_R_SUCCESS)
goto out;
return;
out:
}
static void
/*
* This will return failure if relative name + suffix is too long.
* In this case, just go on to the next entry in the search path.
*/
if (result != ISC_R_SUCCESS)
if (result != ISC_R_SUCCESS) {
return;
}
}
static void
}
void
if (result != LWRES_R_SUCCESS)
goto out;
goto out;
goto out;
if (result != ISC_R_SUCCESS)
goto out;
/*
* We no longer need to keep this around.
*/
/*
* Initialize the real name and alias arrays in the reply we're
* going to build up.
*/
/*
* Start the find.
*/
return;
/*
* We're screwed. Return an error packet to our caller.
*/
out:
}