ctdb-common: Fix a bug in packet reading code for generic socket I/O
authorAmitay Isaacs <amitay@gmail.com>
Wed, 4 Jan 2017 06:46:54 +0000 (17:46 +1100)
committerMartin Schwenke <martins@samba.org>
Fri, 6 Jan 2017 07:37:28 +0000 (08:37 +0100)
commite3440d2bbc0e8f2cb09c94a1d77a60524017cfa0
treeb298195eacba34339955c10e02b4f5ea3847a205
parentebc60b2accbbb1586351d246d0bcc6a2dd528911
ctdb-common: Fix a bug in packet reading code for generic socket I/O

queue->offset currently points to the end of available data.  However,
after processing one packet the beginning of the next packet is not
marked explicitly and caused the same packet to be processed again.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12500

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/common/sock_io.c