From a90273808b62d81ecb73e39c3e87fa49bddaafaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Arreola=20Rodr=C3=ADguez?= Date: Sat, 17 Sep 2022 20:21:20 -0500 Subject: [PATCH] Agrego nuevo codigo de error timeout. --- src/dns2.c | 4 ++-- src/dns2.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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,