diff options
author | Thomas Markwalder <tmark@isc.org> | 2016-06-24 20:30:35 +0200 |
---|---|---|
committer | Thomas Markwalder <tmark@isc.org> | 2016-06-24 20:30:35 +0200 |
commit | 0ce4fe5b3617c0185894334255902521cf8469a1 (patch) | |
tree | 3dabf3df79c9e1698de25809a48f4a0f177c9410 /src/lib/dhcpsrv/pgsql_exchange.cc | |
parent | [4277] Rollback test passes (diff) | |
download | kea-0ce4fe5b3617c0185894334255902521cf8469a1.tar.xz kea-0ce4fe5b3617c0185894334255902521cf8469a1.zip |
[4277] Fixed bug in PsqlBindArray:toText
Diffstat (limited to 'src/lib/dhcpsrv/pgsql_exchange.cc')
-rw-r--r-- | src/lib/dhcpsrv/pgsql_exchange.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/dhcpsrv/pgsql_exchange.cc b/src/lib/dhcpsrv/pgsql_exchange.cc index 286f35e1a5..70685a62e5 100644 --- a/src/lib/dhcpsrv/pgsql_exchange.cc +++ b/src/lib/dhcpsrv/pgsql_exchange.cc @@ -88,10 +88,10 @@ std::string PsqlBindArray::toText() const { stream << "empty" << std::endl; } else { stream << "0x"; - for (int i = 0; i < lengths_[i]; ++i) { + for (int x = 0; x < lengths_[i]; ++x) { stream << std::setfill('0') << std::setw(2) << std::setbase(16) - << static_cast<unsigned int>(data[i]); + << static_cast<unsigned int>(data[x]); } stream << std::endl; } |