gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r1205 - in GNUnet/src/applications/fs: ecrs fsui


From: grothoff
Subject: [GNUnet-SVN] r1205 - in GNUnet/src/applications/fs: ecrs fsui
Date: Sat, 2 Jul 2005 07:01:32 -0700 (PDT)

Author: grothoff
Date: 2005-07-02 07:01:28 -0700 (Sat, 02 Jul 2005)
New Revision: 1205

Modified:
   GNUnet/src/applications/fs/ecrs/namespace.c
   GNUnet/src/applications/fs/fsui/namespace_info.c
Log:
bugfixes

Modified: GNUnet/src/applications/fs/ecrs/namespace.c
===================================================================
--- GNUnet/src/applications/fs/ecrs/namespace.c 2005-07-02 13:06:26 UTC (rev 
1204)
+++ GNUnet/src/applications/fs/ecrs/namespace.c 2005-07-02 14:01:28 UTC (rev 
1205)
@@ -248,14 +248,12 @@
     freePrivateKey(pk);
     if (OK != FS_insert(sock, knvalue))
       ret = SYSERR;
-    FREE(keywords[i]);
     /* restore nblock to avoid re-encryption! */
     memcpy(&knb->nblock,
           cpy,            
           size - sizeof(KBlock) - sizeof(unsigned int));
   }
   FREE(cpy);
-  GROW(keywords, keywordCount, 0);
   FREE(knvalue);
   releaseClientSocket(sock);
   FREE(value);
@@ -507,9 +505,6 @@
   HashCode512 namespace;
   PublicKey pk;
 
-  if (c->cnt == SYSERR)
-    return SYSERR;
-
   fileName = getPseudonymFileName(name);
   if (OK != getFileSize(fileName,
                        &len)) {

Modified: GNUnet/src/applications/fs/fsui/namespace_info.c
===================================================================
--- GNUnet/src/applications/fs/fsui/namespace_info.c    2005-07-02 13:06:26 UTC 
(rev 1204)
+++ GNUnet/src/applications/fs/fsui/namespace_info.c    2005-07-02 14:01:28 UTC 
(rev 1205)
@@ -173,9 +173,16 @@
                             root);
   /* store binding of namespaceName to 'meta' in state DB! */
   if (ret == OK) {
-    writeNamespaceInfo(namespaceName,
+    HashCode512 id;
+    char * name;
+
+    ECRS_getNamespaceId(*root,
+                       &id);
+    name = ECRS_getNamespaceName(&id);
+    writeNamespaceInfo(name,
                       meta,
                       0);
+    FREE(name);
   }
   return ret;
 }





reply via email to

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