From: Marcin Siodelski Date: Mon, 27 Feb 2017 11:34:49 +0000 (+0100) Subject: [5134] Applied fix for conversion from null to uint32_t. X-Git-Tag: trac5137_base~3^2~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=77bfbf39a7aeab16f7583ed9cff59fdeea8ea4ec;p=thirdparty%2Fkea.git [5134] Applied fix for conversion from null to uint32_t. --- diff --git a/src/lib/dhcpsrv/mysql_host_data_source.cc b/src/lib/dhcpsrv/mysql_host_data_source.cc index c5b7548546..9c3540239d 100644 --- a/src/lib/dhcpsrv/mysql_host_data_source.cc +++ b/src/lib/dhcpsrv/mysql_host_data_source.cc @@ -253,7 +253,7 @@ public: // host_id : INT UNSIGNED NOT NULL // The host_id is auto_incremented by MySQL database, // so we need to pass the NULL value - host_id_ = static_cast(NULL); + host_id_ = 0; bind_[0].buffer_type = MYSQL_TYPE_LONG; bind_[0].buffer = reinterpret_cast(&host_id_); bind_[0].is_unsigned = MLM_TRUE;