bug-hurd
[Top][All Lists]
Advanced

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

[PATCH] ftpfs


From: Moritz Schulte
Subject: [PATCH] ftpfs
Date: Fri, 18 Oct 2002 22:44:46 +0200
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i686-pc-linux-gnu)

Hi,

ftpfs doesn't like lookups of non-existing entries, because a
structure member is not initialized and used later in the code in the
case the node could not be found.

2002-10-18  Moritz Schulte  <moritz@duesseldorf.ccc.de>

        * dir.c (ftpfs_dir_lookup): Initialize nes.entry with NULL.

--- dir.c       13 May 2002 22:32:41 -0000      1.13
+++ dir.c       18 Oct 2002 19:54:55 -0000
@@ -676,6 +676,7 @@
                {
                  struct new_entry_state nes;
 
+                 nes.entry = NULL;
                  nes.dir = dir;
                  nes.timestamp = timestamp;


                moritz
-- 
moritz@duesseldorf.ccc.de - http://duesseldorf.ccc.de/~moritz/
GPG fingerprint = 3A14 3923 15BE FD57 FC06  B501 0841 2D7B 6F98 4199




reply via email to

[Prev in Thread] Current Thread [Next in Thread]