We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4cada55 commit 05a666eCopy full SHA for 05a666e
plugins/commando.c
@@ -463,6 +463,10 @@ static void handle_incmd(struct node_id *peer,
463
incmd->contents = tal_arr(incmd, u8, 0);
464
tal_arr_expand(&incoming_commands, incmd);
465
tal_add_destructor2(incmd, destroy_commando, &incoming_commands);
466
+
467
+ /* More than 16 partial commands at once? Free oldest */
468
+ if (tal_count(incoming_commands) > 16)
469
+ tal_free(incoming_commands[0]);
470
}
471
472
/* 1MB should be enough for anybody! */
0 commit comments