- htons => htonl
[oweals/gnunet.git] / src / fragmentation / defragmentation.c
index 5f9eace13bbb9ab5b4ef18e8de5fca445b6f9070..478a9c6584da2b139c56b0fabadb40852d19f9aa 100644 (file)
@@ -210,7 +210,7 @@ GNUNET_DEFRAGMENT_context_create (struct GNUNET_STATISTICS_Handle *stats,
 {
   struct GNUNET_DEFRAGMENT_Context *dc;
 
-  dc = GNUNET_malloc (sizeof (struct GNUNET_DEFRAGMENT_Context));
+  dc = GNUNET_new (struct GNUNET_DEFRAGMENT_Context);
   dc->stats = stats;
   dc->cls = cls;
   dc->proc = proc;