We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4bd5ee commit 8a2aedfCopy full SHA for 8a2aedf
mettle/src/stdapi/net/resolve.c
@@ -37,6 +37,8 @@ void resolve_host_async(struct eio_req *req)
37
goto done;
38
}
39
40
+ ret_val = TLV_RESULT_FAILURE;
41
+
42
struct addrinfo hints = {
43
.ai_family = addr_type,
44
};
@@ -51,6 +53,7 @@ void resolve_host_async(struct eio_req *req)
51
53
52
54
int result = getaddrinfo(hostname, NULL, &hints, &resolved_host);
55
if (result == 0) {
56
+ ret_val = TLV_RESULT_SUCCESS;
57
struct tlv_packet *resolve_host_entry = tlv_packet_new(TLV_TYPE_RESOLVE_HOST_ENTRY, 0);
58
struct addrinfo* i;
59
for(i=resolved_host; i!=NULL; i=i->ai_next)
0 commit comments