Mercurial > masqmail
comparison src/connect.c @ 369:19d57eb1b6a1
Minor refactoring change (else-if).
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Thu, 20 Oct 2011 10:23:47 +0200 |
parents | b27f66555ba8 |
children | 6500db550a03 |
comparison
equal
deleted
inserted
replaced
368:b35c17fcf69d | 369:19d57eb1b6a1 |
---|---|
137 DEBUG(5) { | 137 DEBUG(5) { |
138 debugf("connect_hostlist failed: %s\n", strerror(errno)); | 138 debugf("connect_hostlist failed: %s\n", strerror(errno)); |
139 } | 139 } |
140 | 140 |
141 g_list_free(addr_list); | 141 g_list_free(addr_list); |
142 } else { | 142 } else if (!g_list_next(res_node)) { |
143 if (!g_list_next(res_node)) { | 143 logwrite(LOG_ALERT, "could not resolve %s: %s\n", host, hstrerror(h_errno)); |
144 logwrite(LOG_ALERT, "could not resolve %s: %s\n", host, hstrerror(h_errno)); | |
145 } | |
146 } | 144 } |
147 } | 145 } |
148 return NULL; | 146 return NULL; |
149 | 147 |
150 } | 148 } |