commit - 5da98ec389de2a6d671d270abba86c395e593537
commit + 60bb40d67a8d7c1e38a5d8ca2b7968cf08706008
blob - 2d5e1295f4341b1675db274f0263f66fda92b3f8
blob + a92f99f751b61461710c0280942a4a972d3d5598
--- src/ngircd/conn.c
+++ src/ngircd/conn.c
/* Read result from pipe */
len = Proc_Read(&Conf_Server[i].res_stat, dest_addrs, sizeof(dest_addrs));
- if (len == 0)
+ if (len == 0) {
+ /* Error resolving hostname: reset server structure */
+ Conf_Server[i].conn_id = NONE;
return;
+ }
assert((len % sizeof(ng_ipaddr_t)) == 0);