question about code in resolver.c

Klaus Darilion klaus.mailinglists at
Thu Oct 12 16:20:36 UTC 2006


It would be great if someone can describe this piece of code to me (or 
redirect me to a more appropriate mailing list).

in lib/dns/resovler.c

fctx_done(fetchctx_t *fctx, isc_result_t result) {
   dns_resolver_t *res;
   isc_boolean_t no_response;


   res = fctx->res;

   if (result == ISC_R_SUCCESS) {
     no_response = ISC_TRUE;
     no_response = ISC_FALSE;
   fctx_stopeverything(fctx, no_response);


Why is no_response set to true if the result is ISC_R_SUCCESS? Shouldn't 
it be the other way round? I would suspect no_response to represent if 
there was an response received or not. If this is correct I would set it 
to true if result is ISC_R_SUCCUSS?


More information about the bind-users mailing list