- Timestamp:
- Oct 28, 2014, 1:48:30 AM (11 years ago)
- Branches:
- master
- Children:
- 8f5ba64
- Parents:
- 96a2e31
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
dns.c
r96a2e31 r1c6061c 46 46 int found = 0; 47 47 48 if (ISSETF(is->flags, ICB_SF_PENDINGDROP)) { 49 if (ar->ar_addrinfo) 50 freeaddrinfo(ar->ar_addrinfo); 51 free(is); 52 return; 53 } 54 48 55 if (ar->ar_gai_errno == 0) { 49 56 if (strncmp(is->hostname, "localhost", … … 66 73 } 67 74 } else 68 icbd_log(is, LOG_ WARNING, "dns resolution failed: %s",75 icbd_log(is, LOG_DEBUG, "dns resolution failed: %s", 69 76 gai_strerror(ar->ar_gai_errno)); 70 77 71 78 if (ar->ar_addrinfo) 72 79 freeaddrinfo(ar->ar_addrinfo); 73 74 if (ISSETF(is->flags, ICB_SF_PENDINGDROP)) {75 free(is);76 return;77 }78 80 79 81 CLRF(is->flags, ICB_SF_DNSINPROGRESS); … … 101 103 event_asr_run(as, dns_done_host, is); 102 104 } else { 103 icbd_log(is, LOG_ WARNING, "reverse dns resolution failed: %s",105 icbd_log(is, LOG_DEBUG, "reverse dns resolution failed: %s", 104 106 gai_strerror(ar->ar_gai_errno)); 105 107 CLRF(is->flags, ICB_SF_DNSINPROGRESS); … … 123 125 124 126 return -1; 125 126 127 } 127 128
Note:
See TracChangeset
for help on using the changeset viewer.