diff --git a/src/dns2.c b/src/dns2.c index 7c4a032..1601787 100644 --- a/src/dns2.c +++ b/src/dns2.c @@ -793,7 +793,7 @@ int dns2_check_timeout (DNS2 *obj) { obj->state = DNS_STATE_FREE; obj->direction = DNS_POLL_WANT_NONE; - return DNS_COMMAND_ERROR; + return DNS_COMMAND_TIMEOUT; } obj->current_ns = _dns2_internal_get_next_ns (obj, NULL); @@ -805,7 +805,7 @@ int dns2_check_timeout (DNS2 *obj) { obj->state = DNS_STATE_FREE; obj->direction = DNS_POLL_WANT_NONE; - return DNS_COMMAND_ERROR; + return DNS_COMMAND_TIMEOUT; } return _dns2_internal_udp_create (obj); } diff --git a/src/dns2.h b/src/dns2.h index 28d08d7..ff36de5 100644 --- a/src/dns2.h +++ b/src/dns2.h @@ -21,6 +21,7 @@ enum { }; enum { + DNS_COMMAND_TIMEOUT = -3, DNS_COMMAND_ERROR_UNSIGNED = -2, DNS_COMMAND_ERROR = -1, DNS_COMMAND_POLL = 0,