From 07406195c57145ef29c17cf62e5fc940ad406a05 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Fri, 24 Jan 2003 23:39:29 +0000 Subject: plug potential memory leak; vincent ok --- libexec/spamd/spamd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libexec') 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); -- cgit v1.2.3