]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
silence VC compiler warning
authorMark Andrews <marka@isc.org>
Sat, 7 Oct 2017 03:04:23 +0000 (14:04 +1100)
committerMark Andrews <marka@isc.org>
Sat, 7 Oct 2017 03:04:23 +0000 (14:04 +1100)
lib/ns/client.c

index 7a67ed1a6b27bae3d31d9d4ab451577bd89832bb..dd316387a5cf53acd007041f2a93bdc160101b36 100644 (file)
@@ -2115,7 +2115,7 @@ process_keytag(ns_client_t *client, isc_buffer_t *buf, size_t optlen) {
 
        client->keytag = isc_mem_get(client->mctx, optlen);
        if (client->keytag != NULL) {
-               client->keytag_len = optlen;
+               client->keytag_len = (isc_uint16_t)optlen;
                memmove(client->keytag, isc_buffer_current(buf), optlen);
        }
        isc_buffer_forward(buf, (unsigned int)optlen);