s3:dbwrap_ctdb: fix logic error in pull_newest_from_marshall_buffer().
authorMichael Adam <obnox@samba.org>
Tue, 5 Jan 2010 23:37:21 +0000 (00:37 +0100)
committerMichael Adam <obnox@samba.org>
Fri, 12 Feb 2010 22:12:11 +0000 (23:12 +0100)
commit524072b56bf659002410a817749bf86fe6f51e83
tree90970b4dde85293c96ba7691297afb6ada739e0a
parent1505b69dea6044a13a59f672e22f5833256cb981
s3:dbwrap_ctdb: fix logic error in pull_newest_from_marshall_buffer().

The logic bug was that if a record was found in the marshall buffer,
then always the ctdb header of tha last record in the marshall buffer
was returned, and not the ctdb header of the last occurrence of the
requested record.

This is fixed by introducing an additional temporary variable.

Michael
source3/lib/dbwrap_ctdb.c