From c287edd2a070ab8be5dc963922381402a88f83da Mon Sep 17 00:00:00 2001 From: jnemeth Date: Tue, 23 May 2006 23:59:48 +0000 Subject: [PATCH] Coverity CID 3610: derefencing NULL pointer. --- usr.bin/ftp/util.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr.bin/ftp/util.c b/usr.bin/ftp/util.c index de8e775924a7..0e17f1f41a20 100644 --- a/usr.bin/ftp/util.c +++ b/usr.bin/ftp/util.c @@ -1,4 +1,4 @@ -/* $NetBSD: util.c,v 1.134 2006/04/28 20:07:57 christos Exp $ */ +/* $NetBSD: util.c,v 1.135 2006/05/23 23:59:48 jnemeth Exp $ */ /*- * Copyright (c) 1997-2005 The NetBSD Foundation, Inc. @@ -71,7 +71,7 @@ #include #ifndef lint -__RCSID("$NetBSD: util.c,v 1.134 2006/04/28 20:07:57 christos Exp $"); +__RCSID("$NetBSD: util.c,v 1.135 2006/05/23 23:59:48 jnemeth Exp $"); #endif /* not lint */ /* @@ -492,7 +492,7 @@ ftp_login(const char *host, const char *luser, const char *lpass) memset(pass, 0, strlen(pass)); FREEPTR(pass); if (acct != NULL) - memset(acct, 0, strlen(pass)); + memset(acct, 0, strlen(acct)); FREEPTR(acct); return (rval); }