flush peer respect value on disconnect
[oweals/gnunet.git] / src / fs / fs_list_indexed.c
index 784c9881a4ce65857b03aa70e754e2048757bbcc..7a891155e3b4df0d4900eb4957f1fcb4d2227148 100644 (file)
@@ -151,7 +151,7 @@ GNUNET_FS_get_indexed_files (struct GNUNET_FS_Handle *h,
                 _("Failed to not connect to `%s' service.\n"), "fs");
     return NULL;
   }
-  gic = GNUNET_malloc (sizeof (struct GNUNET_FS_GetIndexedContext));
+  gic = GNUNET_new (struct GNUNET_FS_GetIndexedContext);
   gic->h = h;
   gic->client = client;
   gic->iterator = iterator;
@@ -176,7 +176,7 @@ GNUNET_FS_get_indexed_files (struct GNUNET_FS_Handle *h,
 void
 GNUNET_FS_get_indexed_files_cancel (struct GNUNET_FS_GetIndexedContext *gic)
 {
-  GNUNET_CLIENT_disconnect (gic->client, GNUNET_NO);
+  GNUNET_CLIENT_disconnect (gic->client);
   GNUNET_free (gic);
 }