fixing resource leaks
[oweals/gnunet.git] / src / ats / test_ats_solver_alternative_after_delete_address.c
index 3bd038799bb92ce12da292c465e49b8822261510..a1bb840dae9880b92eab1e2c51e297d3ba69ae17 100644 (file)
@@ -216,24 +216,12 @@ address_suggest_cb (void *cls,
   {
     if (NULL == second_suggestion)
     {
-      GNUNET_assert (NULL != address);
-      GNUNET_assert (NULL == session);
-      GNUNET_assert (ntohl(bandwidth_in.value__) > 0);
-      GNUNET_assert (ntohl(bandwidth_out.value__) > 0);
-
       if ((NULL == address) || (NULL != session))
       {
         GNUNET_break (0);
         end_badly_now ();
         return;
       }
-      if ((ntohl(bandwidth_in.value__) == 0) ||
-          (ntohl(bandwidth_out.value__) == 0))
-      {
-        GNUNET_break (0);
-        end_badly_now ();
-        return;
-      }
 
       if (0 == memcmp (address->address, first_suggestion->address,
           (first_suggestion->address_length < address->address_length) ? first_suggestion->address_length : address->address_length))