gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r4812 - GNUnet/src/applications/fs/uritrack


From: gnunet
Subject: [GNUnet-SVN] r4812 - GNUnet/src/applications/fs/uritrack
Date: Sun, 27 May 2007 16:24:25 -0600 (MDT)

Author: grothoff
Date: 2007-05-27 16:24:25 -0600 (Sun, 27 May 2007)
New Revision: 4812

Modified:
   GNUnet/src/applications/fs/uritrack/uri_info.c
Log:
fix

Modified: GNUnet/src/applications/fs/uritrack/uri_info.c
===================================================================
--- GNUnet/src/applications/fs/uritrack/uri_info.c      2007-05-27 22:09:25 UTC 
(rev 4811)
+++ GNUnet/src/applications/fs/uritrack/uri_info.c      2007-05-27 22:24:25 UTC 
(rev 4812)
@@ -153,10 +153,13 @@
     FREE(s);
     return;
   }
-  if (2 != read(fd, io, 2))
+  if (2 != read(fd, io, 2)) {
+    io[0] = crc;
+    io[1] = URITRACK_FRESH;  
+  } else if (io[0] != (unsigned char) crc) {
+    io[0] = (unsigned char) crc;
     io[1] = URITRACK_FRESH;
-  if (io[0] == (unsigned char) crc) 
-    io[1] = URITRACK_FRESH;
+  }
   io[1] |= state;
   if (o != lseek(fd, o, SEEK_SET)) {
     GE_LOG_STRERROR_FILE(ectx,





reply via email to

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