Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
a7742a88
Commit
a7742a88
authored
Mar 13, 2014
by
Evan Hunt
Browse files
[master] silence win64 build warning
parent
1eb5e1b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/named/server.c
View file @
a7742a88
...
...
@@ -9271,7 +9271,7 @@ newzone_cfgctx_destroy(void **cfgp) {
static
isc_result_t
generate_salt
(
unsigned
char
*
salt
,
size_t
saltlen
)
{
int
i
,
n
um_ints
;
int
i
,
n
;
union
{
unsigned
char
rnd
[
256
];
isc_uint32_t
rnd32
[
64
];
...
...
@@ -9284,14 +9284,14 @@ generate_salt(unsigned char *salt, size_t saltlen) {
if
(
saltlen
>
256U
)
return
(
ISC_R_RANGE
);
n
um_ints
=
(
saltlen
+
sizeof
(
isc_uint32_t
)
-
1
)
/
sizeof
(
isc_uint32_t
);
for
(
i
=
0
;
i
<
n
um_ints
;
i
++
)
n
=
(
int
)
(
saltlen
+
sizeof
(
isc_uint32_t
)
-
1
)
/
sizeof
(
isc_uint32_t
);
for
(
i
=
0
;
i
<
n
;
i
++
)
isc_random_get
(
&
rnd
.
rnd32
[
i
]);
memcpy
(
salt
,
rnd
.
rnd
,
saltlen
);
r
.
base
=
rnd
.
rnd
;
r
.
length
=
saltlen
;
r
.
length
=
(
unsigned
int
)
saltlen
;
isc_buffer_init
(
&
buf
,
text
,
sizeof
(
text
));
result
=
isc_hex_totext
(
&
r
,
2
,
""
,
&
buf
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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