Whoa, leaked messages.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4800 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
parent
923d6f9835
commit
55fb5dce1a
@ -346,7 +346,9 @@ static JSValue _tf_ssb_appendMessageWithIdentity(JSContext* context, JSValueCons
|
|||||||
uint8_t private_key[crypto_sign_SECRETKEYBYTES];
|
uint8_t private_key[crypto_sign_SECRETKEYBYTES];
|
||||||
if (tf_ssb_db_identity_get_private_key(ssb, user, id, private_key, sizeof(private_key)))
|
if (tf_ssb_db_identity_get_private_key(ssb, user, id, private_key, sizeof(private_key)))
|
||||||
{
|
{
|
||||||
tf_ssb_verify_strip_and_store_message(ssb, tf_ssb_sign_message(ssb, id, private_key, argv[2]), _tf_ssb_appendMessageWithIdentity_callback, async);
|
JSValue signed_message = tf_ssb_sign_message(ssb, id, private_key, argv[2]);
|
||||||
|
tf_ssb_verify_strip_and_store_message(ssb, signed_message, _tf_ssb_appendMessageWithIdentity_callback, async);
|
||||||
|
JS_FreeValue(context, signed_message);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -905,6 +905,7 @@ static void _tf_ssb_rpc_createHistoryStream(tf_ssb_connection_t* connection, uin
|
|||||||
JS_FreeValue(context, id);
|
JS_FreeValue(context, id);
|
||||||
JS_FreeValue(context, seq);
|
JS_FreeValue(context, seq);
|
||||||
JS_FreeValue(context, keys);
|
JS_FreeValue(context, keys);
|
||||||
|
JS_FreeValue(context, live);
|
||||||
JS_FreeValue(context, arg);
|
JS_FreeValue(context, arg);
|
||||||
JS_FreeValue(context, arg_array);
|
JS_FreeValue(context, arg_array);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user