summaryrefslogtreecommitdiff
path: root/omapip/connection.c
diff options
context:
space:
mode:
authorTed Lemon <source@isc.org>2001-01-08 15:39:43 +0000
committerTed Lemon <source@isc.org>2001-01-08 15:39:43 +0000
commitb8a4e41a7af07bfb3788430b852a21a2594d20e5 (patch)
tree89a19caf461f45c145e2a8c6e51a5ff29ea226f0 /omapip/connection.c
parentfd35aacb24d8a8ac9358649e3c6e620d0ce8acf4 (diff)
downloadisc-dhcp-b8a4e41a7af07bfb3788430b852a21a2594d20e5.tar.gz
Fix a signed vs. unsigned problem.
Diffstat (limited to 'omapip/connection.c')
-rw-r--r--omapip/connection.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/omapip/connection.c b/omapip/connection.c
index 49392659..ae01e5b6 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;