Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-3-0]: src/libexec/ftpd Pull up following revision(s) (requested b...



details:   https://anonhg.NetBSD.org/src/rev/8ca633f3e1ea
branches:  netbsd-3-0
changeset: 579501:8ca633f3e1ea
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Thu Sep 18 19:16:51 2008 +0000

description:
Pull up following revision(s) (requested by lukem in ticket #1961):
        libexec/ftpd/ftpd.c: revision 1.174
Set file to NULL after calling fclose().
Fixes Coverity CID 2669.
Ok by lukem@.

diffstat:

 libexec/ftpd/ftpd.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r df88c1962893 -r 8ca633f3e1ea libexec/ftpd/ftpd.c
--- a/libexec/ftpd/ftpd.c       Thu Sep 18 19:15:04 2008 +0000
+++ b/libexec/ftpd/ftpd.c       Thu Sep 18 19:16:51 2008 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ftpd.c,v 1.164.2.1.2.3 2008/09/18 19:15:04 bouyer Exp $        */
+/*     $NetBSD: ftpd.c,v 1.164.2.1.2.4 2008/09/18 19:16:51 bouyer Exp $        */
 
 /*
  * Copyright (c) 1997-2004 The NetBSD Foundation, Inc.
@@ -105,7 +105,7 @@
 #if 0
 static char sccsid[] = "@(#)ftpd.c     8.5 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: ftpd.c,v 1.164.2.1.2.3 2008/09/18 19:15:04 bouyer Exp $");
+__RCSID("$NetBSD: ftpd.c,v 1.164.2.1.2.4 2008/09/18 19:16:51 bouyer Exp $");
 #endif
 #endif /* not lint */
 
@@ -1854,6 +1854,7 @@
                        break;
                conerrno = errno;
                (void) fclose(file);
+               file = NULL;
                data = -1;
                if (conerrno == EADDRINUSE) {
                        sleep((unsigned) swaitint);



Home | Main Index | Thread Index | Old Index