]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Fix a signed vs. unsigned problem.
authorTed Lemon <source@isc.org>
Mon, 8 Jan 2001 15:39:43 +0000 (15:39 +0000)
committerTed Lemon <source@isc.org>
Mon, 8 Jan 2001 15:39:43 +0000 (15:39 +0000)
omapip/connection.c

index 493926591e7ebc473e22b943a7667f92e8b7d9bb..ae01e5b6cece5e028cb46981541de42b02852eb6 100644 (file)
@@ -460,7 +460,8 @@ static isc_result_t make_dst_key (DST_KEY **dst_key, omapi_object_t *a) {
        if (status == ISC_R_SUCCESS) {
                if ((algorithm -> value -> type == omapi_datatype_data ||
                     algorithm -> value -> type == omapi_datatype_string) &&
-                   strncasecmp (algorithm -> value -> u.buffer.value,
+                   strncasecmp ((unsigned char *)
+                                algorithm -> value -> u.buffer.value,
                                 NS_TSIG_ALG_HMAC_MD5 ".",
                                 algorithm -> value -> u.buffer.len) == 0) {
                        algorithm_id = KEY_HMAC_MD5;