summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-01-24 23:39:29 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-01-24 23:39:29 +0000
commit07406195c57145ef29c17cf62e5fc940ad406a05 (patch)
tree088596c6445983fec0a39f8c4206dabc6394ef29 /libexec
parent79c96310c25bb5418cfc2f7bb80dcfc72eef300a (diff)
plug potential memory leak; vincent ok
Diffstat (limited to 'libexec')
-rw-r--r--libexec/spamd/spamd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libexec/spamd/spamd.c b/libexec/spamd/spamd.c
index 0bc75f949c2..27d25e6914a 100644
--- a/libexec/spamd/spamd.c
+++ b/libexec/spamd/spamd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: spamd.c,v 1.7 2003/01/05 23:10:16 deraadt Exp $ */
+/* $OpenBSD: spamd.c,v 1.8 2003/01/24 23:39:28 deraadt Exp $ */
/*
* Copyright (c) 2002 Theo de Raadt. All rights reserved.
@@ -317,9 +317,10 @@ handlew(struct con *cp, int one)
int
main(int argc, char *argv[])
{
+ fd_set *fdsr = NULL, *fdsw = NULL;
struct sockaddr_in sin;
struct passwd *pw;
- int ch, s, s2, i;
+ int ch, s, s2, i, omax = 0;
int sinlen, one = 1;
u_short port = 8025;
@@ -414,9 +415,8 @@ main(int argc, char *argv[])
printf("listening for incoming connections.\n");
while (1) {
- fd_set *fdsr = NULL, *fdsw = NULL;
struct timeval tv, *tvp;
- int max = s, i, n, omax = 0;
+ int max = s, i, n;
int writers;
time(&t);