From: Ted Lemon Date: Mon, 8 Jan 2001 15:39:43 +0000 (+0000) Subject: Fix a signed vs. unsigned problem. X-Git-Tag: V3-BETA-2-PATCH-12~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8a4e41a7af07bfb3788430b852a21a2594d20e5;p=thirdparty%2Fdhcp.git Fix a signed vs. unsigned problem. --- diff --git a/omapip/connection.c b/omapip/connection.c index 493926591..ae01e5b6c 100644 --- a/omapip/connection.c +++ b/omapip/connection.c @@ -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;