-fix
authorMartin Schanzenbach <mschanzenbach@posteo.de>
Thu, 15 Mar 2012 11:30:58 +0000 (11:30 +0000)
committerMartin Schanzenbach <mschanzenbach@posteo.de>
Thu, 15 Mar 2012 11:30:58 +0000 (11:30 +0000)
src/gns/gns_api.c

index bd77f378e2dcfe83d484ef7179924b3f1d310915..1a268f952c1adbbcdef200f09f5c84480b56b7f6 100644 (file)
@@ -505,7 +505,8 @@ process_message (void *cls, const struct GNUNET_MessageHeader *msg)
     }
     if (qe)
       process_lookup_reply(qe, lookup_msg);
-
+    
+    return;
 
   }
   else if (type == GNUNET_MESSAGE_TYPE_GNS_SHORTEN_RESULT)
@@ -532,6 +533,7 @@ process_message (void *cls, const struct GNUNET_MessageHeader *msg)
     }
     if (qe)
       process_shorten_reply(qe, shorten_msg);
+    return;
   }
   else if (type == GNUNET_MESSAGE_TYPE_GNS_GET_AUTH_RESULT)
   {
@@ -557,6 +559,7 @@ process_message (void *cls, const struct GNUNET_MessageHeader *msg)
     }
     if (qe)
       process_get_auth_reply(qe, get_auth_msg);
+    return;
   }
 
 
@@ -604,7 +607,7 @@ GNUNET_GNS_disconnect (struct GNUNET_GNS_Handle *h)
     GNUNET_SCHEDULER_cancel (h->reconnect_task);
     h->reconnect_task = GNUNET_SCHEDULER_NO_TASK;
   }
-  //GNUNET_free(h);
+  GNUNET_free(h);
   /* disco from GNS */
 }