Commit Diff


commit - e899c75d7eb0001e0fe6e0187899b52e6e41b2f5
commit + 6444442931c537eb3c8f816ff0ab3f4602ccc767
blob - a5ba32e4cd5cc32ca1bf83725702e98b013fd58c
blob + 723880f662ac846e53f3e74718d9dca75bfeb4dd
--- src/ngircd/resolve.c
+++ src/ngircd/resolve.c
@@ -14,7 +14,7 @@
 
 #include "portab.h"
 
-static char UNUSED id[] = "$Id: resolve.c,v 1.17 2005/07/31 20:13:08 alex Exp $";
+static char UNUSED id[] = "$Id: resolve.c,v 1.18 2005/09/02 21:47:30 fw Exp $";
 
 #include "imp.h"
 #include <assert.h>
@@ -118,6 +118,7 @@ Resolve_Addr( struct sockaddr_in *Addr )
 
 out: /* Error! */
 	close( s->pipe[0] );
+	close( s->pipe[1] );
 	free( s );
 return NULL;
 } /* Resolve_Addr */
@@ -168,6 +169,7 @@ Resolve_Name( char *Host )
 
 out: /* Error! */
 	close( s->pipe[0] );
+	close( s->pipe[1] );
 	free( s );
 	return NULL;
 } /* Resolve_Name */