Commit Diff


commit - c7a6a5d7fc384a9787efae3d627170f00da8f655
commit + 395f7f0c30fea3e896ffc5bc456d003469193e40
blob - 2f56167559814abe99ebb6fd27f46a737c72194d
blob + 8f57cef062c7d7dd1d896ccce3fa143daee52d30
--- main.c
+++ main.c
@@ -136,7 +136,7 @@ struct tcps {
 } *tn1, *tn2, *tnp;
 
 
-static const char rcsid[] = "$Id: main.c,v 1.69 2011/09/22 07:39:37 pbug Exp $";
+static const char rcsid[] = "$Id: main.c,v 1.70 2011/09/22 07:52:16 pbug Exp $";
 
 /* 
  * MAIN - set up arguments, set up database, set up sockets, call mainloop
@@ -855,7 +855,7 @@ main(int argc, char *argv[])
 		default:
 			/* close afd descriptors, they aren't needed here */
 			for (j = 0; j < i; j++) {
-				close(afd[i]);
+				close(afd[j]);
 			}
 
 			break;