Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

nullify q->reply earlier in kdbus_conn_move_messages()

  • Loading branch information...
commit c28061e9e6dd9a22c1c5c837cd7db28c9fb2fcec 1 parent 13fa24d
@zonque zonque authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  connection.c
View
3  connection.c
@@ -1578,13 +1578,14 @@ int kdbus_conn_move_messages(struct kdbus_conn *conn_dst,
/* insert messages into destination */
mutex_lock(&conn_dst->lock);
list_for_each_entry_safe(q, q_tmp, &msg_list, entry) {
+ q->reply = NULL;
+
/* filter messages for a specific name */
if (name_id > 0 && q->dst_name_id != name_id) {
kdbus_conn_queue_cleanup(q);
continue;
}
- q->reply = NULL;
ret = kdbus_pool_move(conn_dst->pool, conn_src->pool,
&q->off, q->size);
if (ret < 0)
Please sign in to comment.
Something went wrong with that request. Please try again.