Source-Changes-HG archive

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

[src/netbsd-3-0]: src/usr.bin/ftp Pull up following revision(s) (requested by...



details:   https://anonhg.NetBSD.org/src/rev/8e75ed4be878
branches:  netbsd-3-0
changeset: 579228:8e75ed4be878
user:      ghen <ghen%NetBSD.org@localhost>
date:      Fri May 26 16:47:55 2006 +0000

description:
Pull up following revision(s) (requested by jnemeth in ticket #1339):
        usr.bin/ftp/util.c: revision 1.135
Coverity CID 3610: derefencing NULL pointer.

diffstat:

 usr.bin/ftp/util.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 0982bd0becca -r 8e75ed4be878 usr.bin/ftp/util.c
--- a/usr.bin/ftp/util.c        Wed May 24 02:24:26 2006 +0000
+++ b/usr.bin/ftp/util.c        Fri May 26 16:47:55 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: util.c,v 1.117.2.14 2005/07/24 10:33:57 tron Exp $     */
+/*     $NetBSD: util.c,v 1.117.2.14.2.1 2006/05/26 16:47:55 ghen Exp $ */
 
 /*-
  * Copyright (c) 1997-2005 The NetBSD Foundation, Inc.
@@ -71,7 +71,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: util.c,v 1.117.2.14 2005/07/24 10:33:57 tron Exp $");
+__RCSID("$NetBSD: util.c,v 1.117.2.14.2.1 2006/05/26 16:47:55 ghen Exp $");
 #endif /* not lint */
 
 /*
@@ -492,7 +492,7 @@
                memset(pass, 0, strlen(pass));
        FREEPTR(pass);
        if (acct != NULL)
-               memset(acct, 0, strlen(pass));
+               memset(acct, 0, strlen(acct));
        FREEPTR(acct);
        return (rval);
 }



Home | Main Index | Thread Index | Old Index