Source-Changes-HG archive

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

[src/trunk]: src/libexec/ftpd Fix uninitialized variable "notglob" in send_fi...



details:   https://anonhg.NetBSD.org/src/rev/cf3927061384
branches:  trunk
changeset: 543415:cf3927061384
user:      erh <erh%NetBSD.org@localhost>
date:      Mon Feb 24 19:26:49 2003 +0000

description:
Fix uninitialized variable "notglob" in send_file_list() that was causing
transfers to fail due to an abort in free().

diffstat:

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

diffs (28 lines):

diff -r 3e63032e44cd -r cf3927061384 libexec/ftpd/ftpd.c
--- a/libexec/ftpd/ftpd.c       Mon Feb 24 19:25:25 2003 +0000
+++ b/libexec/ftpd/ftpd.c       Mon Feb 24 19:26:49 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ftpd.c,v 1.152 2003/02/23 13:04:37 lukem Exp $ */
+/*     $NetBSD: ftpd.c,v 1.153 2003/02/24 19:26:49 erh Exp $   */
 
 /*
  * Copyright (c) 1997-2001 The NetBSD Foundation, Inc.
@@ -109,7 +109,7 @@
 #if 0
 static char sccsid[] = "@(#)ftpd.c     8.5 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: ftpd.c,v 1.152 2003/02/23 13:04:37 lukem Exp $");
+__RCSID("$NetBSD: ftpd.c,v 1.153 2003/02/24 19:26:49 erh Exp $");
 #endif
 #endif /* not lint */
 
@@ -2909,7 +2909,8 @@
        DIR *dirp = NULL;
        struct dirent *dir;
        FILE *dout = NULL;
-       char **dirlist, *dirname, *notglob, *p;
+       char **dirlist, *dirname, *p;
+       char *notglob = NULL;
        int simple = 0;
        int freeglob = 0;
        glob_t gl;



Home | Main Index | Thread Index | Old Index