X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fngircd%2Fconn.c;h=407da1a3b0837ac2bd99c16054175a4b4070e006;hb=69803d6ff1ac8deb95e023bda6ad2aef435dc69a;hp=1a9ac47abcd55bc8d64f2b143ef550b2ae9dc6af;hpb=1361b3742df0c5c8d51272248ff70164d0a3cd11;p=ngircd-alex.git diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c index 1a9ac47a..407da1a3 100644 --- a/src/ngircd/conn.c +++ b/src/ngircd/conn.c @@ -2107,6 +2107,7 @@ cb_Connect_to_Server(int fd, UNUSED short events) /* Read result from pipe */ len = Proc_Read(&Conf_Server[i].res_stat, dest_addrs, sizeof(dest_addrs)); + Proc_Close(&Conf_Server[i].res_stat); if (len == 0) { /* Error resolving hostname: reset server structure */ Conf_Server[i].conn_id = NONE; @@ -2166,6 +2167,7 @@ cb_Read_Resolver_Result( int r_fd, UNUSED short events ) /* Read result from pipe */ len = Proc_Read(&My_Connections[i].proc_stat, readbuf, sizeof readbuf -1); + Proc_Close(&My_Connections[i].proc_stat); if (len == 0) return;