@@ -738,7 +738,7 @@ reliable_mark_active_outgoing(struct reliable *rel, struct buffer *buf, int opco
/* delete a buffer previously activated by reliable_mark_active() */
void
-reliable_mark_deleted(struct reliable *rel, struct buffer *buf, bool inc_pid)
+reliable_mark_deleted(struct reliable *rel, struct buffer *buf)
{
int i;
for (i = 0; i < rel->size; ++i)
@@ -747,10 +747,7 @@ reliable_mark_deleted(struct reliable *rel, struct buffer *buf, bool inc_pid)
if (buf == &e->buf)
{
e->active = false;
- if (inc_pid)
- {
- rel->packet_id = e->packet_id + 1;
- }
+ rel->packet_id = e->packet_id + 1;
return;
}
}
@@ -367,7 +367,7 @@ struct buffer *reliable_get_buf_sequenced(struct reliable *rel);
* @param inc_pid If true, the reliable structure's packet ID counter
* will be incremented.
*/
-void reliable_mark_deleted(struct reliable *rel, struct buffer *buf, bool inc_pid);
+void reliable_mark_deleted(struct reliable *rel, struct buffer *buf);
/** @} name Functions for extracting incoming packets */
@@ -2610,7 +2610,7 @@ tls_process(struct tls_multi *multi,
}
if (status == 1)
{
- reliable_mark_deleted(ks->rec_reliable, buf, true);
+ reliable_mark_deleted(ks->rec_reliable, buf);
state_change = true;
dmsg(D_TLS_DEBUG, "Incoming Ciphertext -> TLS");
}