// callbacks when we return from this function. Setting ProcessReply to NULL
// provides extra protection.
sdRef->ProcessReply = NULL;
+ shutdown(sdRef->sockfd, SHUT_WR);
dispatch_source_cancel(sdRef->disp_source);
dispatch_release(sdRef->disp_source);
sdRef->disp_source = NULL;
return err;
}
-
static void handle_port_mapping_response(DNSServiceOp *const sdr, const CallbackHeader *const cbh, const char *data, const char *const end)
{
union { uint32_t l; u_char b[4]; } addr;