This commit is contained in:
Christian Grothoff 2021-04-02 14:55:15 +02:00
parent 25fd6dc25a
commit cb686975ed
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
2 changed files with 7 additions and 5 deletions

View File

@ -110,7 +110,8 @@ forget (const json_t *in)
json_decref (ret); json_decref (ret);
return NULL; return NULL;
} }
if (0 != json_array_append_new (ret, t)) if (0 != json_array_append_new (ret,
t))
{ {
GNUNET_break (0); GNUNET_break (0);
json_decref (ret); json_decref (ret);
@ -145,8 +146,7 @@ forget (const json_t *in)
json_t *t; json_t *t;
json_t *salt; json_t *salt;
if (0 == strcmp (key, if (fg == value)
"_forgettable"))
continue; /* skip! */ continue; /* skip! */
if (rx == value) if (rx == value)
continue; /* skip! */ continue; /* skip! */
@ -187,6 +187,7 @@ forget (const json_t *in)
GNUNET_break (0); GNUNET_break (0);
json_decref (ret); json_decref (ret);
json_decref (rx); json_decref (rx);
json_decref (t);
return NULL; return NULL;
} }
if (GNUNET_OK != if (GNUNET_OK !=
@ -197,15 +198,16 @@ forget (const json_t *in)
GNUNET_break (0); GNUNET_break (0);
json_decref (ret); json_decref (ret);
json_decref (rx); json_decref (rx);
json_decref (t);
return NULL; return NULL;
} }
json_decref (t);
if (NULL == rx) if (NULL == rx)
rx = json_object (); rx = json_object ();
if (NULL == rx) if (NULL == rx)
{ {
GNUNET_break (0); GNUNET_break (0);
json_decref (ret); json_decref (ret);
json_decref (rx);
return NULL; return NULL;
} }
if (0 != if (0 !=

View File

@ -87,7 +87,7 @@ path_cb (void *cls,
static int static int
test_contract () test_contract (void)
{ {
struct GNUNET_HashCode h1; struct GNUNET_HashCode h1;
struct GNUNET_HashCode h2; struct GNUNET_HashCode h2;