]> granicus.if.org Git - pdns/commit
auth: Always bind the results array after executing a statement
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 2 Jan 2018 16:03:47 +0000 (17:03 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 2 Jan 2018 16:30:46 +0000 (17:30 +0100)
commit4fd90e75d47d6ec43d10c94ea260b08e50806442
tree1613d35a1fe13993d919eeab415c31ecc40bba7e
parent82b8b632f3c6b975eb33fc54b737c24b802a77d7
auth: Always bind the results array after executing a statement

We will reuse the same array most of the time, but it turns out that
calling mysql_stmt_next_result() followed by mysql_stmt_store_result()
invalidates the existing binding (the first one sets stmt->bind_result_done
to false, causing the second to reset the existing binding).
modules/gmysqlbackend/smysql.cc