Commit 34efd9ad authored by Mark Andrews's avatar Mark Andrews

cast to unsigned int

parent 055d310e
......@@ -3227,7 +3227,7 @@ nsec3param_salt_totext(dns_rdata_nsec3param_t *nsec3param, char *dst,
REQUIRE(dst != NULL);
if (nsec3param->salt_length == 0) {
if (dstlen < 2) {
if (dstlen < 2U) {
return (ISC_R_NOSPACE);
}
strlcpy(dst, "-", dstlen);
......@@ -3236,7 +3236,7 @@ nsec3param_salt_totext(dns_rdata_nsec3param_t *nsec3param, char *dst,
r.base = nsec3param->salt;
r.length = nsec3param->salt_length;
isc_buffer_init(&b, dst, dstlen);
isc_buffer_init(&b, dst, (unsigned int)dstlen);
result = isc_hex_totext(&r, 2, "", &b);
if (result != ISC_R_SUCCESS) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment