Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Schrader
Kea
Commits
77bfbf39
Commit
77bfbf39
authored
Feb 27, 2017
by
Marcin Siodelski
Browse files
[5134] Applied fix for conversion from null to uint32_t.
parent
97ac3e79
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/dhcpsrv/mysql_host_data_source.cc
View file @
77bfbf39
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment