Browse Source

[5134] Applied fix for conversion from null to uint32_t.

Marcin Siodelski 8 years ago
parent
commit
77bfbf39a7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/dhcpsrv/mysql_host_data_source.cc

+ 1 - 1
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<uint32_t>(NULL);
+            host_id_ = 0;
             bind_[0].buffer_type = MYSQL_TYPE_LONG;
             bind_[0].buffer = reinterpret_cast<char*>(&host_id_);
             bind_[0].is_unsigned = MLM_TRUE;