[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r7100 - GNUnet/src/applications/fs/tools
From: |
gnunet |
Subject: |
[GNUnet-SVN] r7100 - GNUnet/src/applications/fs/tools |
Date: |
Sun, 8 Jun 2008 23:54:03 -0600 (MDT) |
Author: grothoff
Date: 2008-06-08 23:54:03 -0600 (Sun, 08 Jun 2008)
New Revision: 7100
Modified:
GNUnet/src/applications/fs/tools/gnunet-auto-share.c
Log:
segv
Modified: GNUnet/src/applications/fs/tools/gnunet-auto-share.c
===================================================================
--- GNUnet/src/applications/fs/tools/gnunet-auto-share.c 2008-06-09
04:58:17 UTC (rev 7099)
+++ GNUnet/src/applications/fs/tools/gnunet-auto-share.c 2008-06-09
05:54:03 UTC (rev 7100)
@@ -201,7 +201,7 @@
{
rec = GNUNET_malloc (sizeof (struct FileRecord));
rec->next = records;
- rec->filename = fn;
+ rec->filename = GNUNET_strdup(fn);
rec->mtime = buf.st_mtime;
rec->size = buf.st_size;
rec->last_seen = time (NULL);
@@ -211,6 +211,7 @@
if (GNUNET_NO == GNUNET_FS_test_indexed (sock, &rec->hc))
{
*run = 1;
+ GNUNET_free (fn);
return GNUNET_SYSERR;
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r7100 - GNUnet/src/applications/fs/tools,
gnunet <=