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/1f75e9bbb3d7
branches:  netbsd-3-0
changeset: 579502:1f75e9bbb3d7
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Thu Sep 18 19:21:03 2008 +0000

description:
Pull up following revision(s) (requested by lukem in ticket #1962):
        libexec/ftpd/ftpd.c: revision 1.175
Remove unreachable code (res could never be NULL here).
Fixes Coverity CID 712.
Ok by lukem@.

diffstat:

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

diffs (27 lines):

diff -r 8ca633f3e1ea -r 1f75e9bbb3d7 libexec/ftpd/ftpd.c
--- a/libexec/ftpd/ftpd.c       Thu Sep 18 19:16:51 2008 +0000
+++ b/libexec/ftpd/ftpd.c       Thu Sep 18 19:21:03 2008 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ftpd.c,v 1.164.2.1.2.4 2008/09/18 19:16:51 bouyer Exp $        */
+/*     $NetBSD: ftpd.c,v 1.164.2.1.2.5 2008/09/18 19:21:03 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.4 2008/09/18 19:16:51 bouyer Exp $");
+__RCSID("$NetBSD: ftpd.c,v 1.164.2.1.2.5 2008/09/18 19:21:03 bouyer Exp $");
 #endif
 #endif /* not lint */
 
@@ -3071,8 +3071,6 @@
        usedefault = 1;
        if (tmp != NULL)
                free(tmp);
-       if (res)
-               freeaddrinfo(res);
        return -1;
 }
 



Home | Main Index | Thread Index | Old Index