[nanomsg] [PATCH] Initialize epbase item

  • From: Nir Soffer <nirsof@xxxxxxxxx>
  • To: nanosmg list <nanomsg@xxxxxxxxxxxxx>
  • Date: Sat, 2 Mar 2013 05:08:47 +0200

epbase nn_list_item struct was not initialized, leading to failures when
an item was removed from a list before it was added to the list.

Now nn_epbase_init() initialize the item to nill item.

In nn_list_item_nil(), only prev pointer was initialized. Now next
pointer is initialized as well.

This fix the "Conditional jump or move depends on uninitialised
value(s)" error seen in valgrind in the tcp test.

Attachment: 0001-Initialize-epbase-item.patch
Description: Binary data

Other related posts: