summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorGravatar John Kohl <jtkohl@mit.edu>1989-12-13 05:31:44 +0000
committerGravatar John Kohl <jtkohl@mit.edu>1989-12-13 05:31:44 +0000
commitab29a7410f07fb810c6d423ecba2da2439fccab2 (patch)
treeae5aa0396ab4e35860bab5778442574ced5fb46f /server
parentb85d33b022bc3875841de1d72267bab69222b935 (diff)
need case-insensitive matching for classes/instances
Diffstat (limited to 'server')
-rw-r--r--server/dispatch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/dispatch.c b/server/dispatch.c
index c3f7cbc..5ae36c1 100644
--- a/server/dispatch.c
+++ b/server/dispatch.c
@@ -171,7 +171,7 @@ handle_packet()
break;
}
if (whoisit.sin_port != hm_port &&
- strcmp(new_notice.z_class,ZEPHYR_ADMIN_CLASS) &&
+ strcasecmp(new_notice.z_class,ZEPHYR_ADMIN_CLASS) &&
whoisit.sin_port != sock_sin.sin_port &&
new_notice.z_kind != CLIENTACK) {
syslog(LOG_ERR,
@@ -731,7 +731,7 @@ ZServerDesc_t *server;
* CLIENT_CANCELSUB: ""
*/
- if (!strcmp(notice->z_class_inst, ZEPHYR_CTL_HM))
+ if (!strcasecmp(notice->z_class_inst, ZEPHYR_CTL_HM))
return(hostm_dispatch(notice, auth, who, server));
else if (!strcmp(opcode, CLIENT_GIMMESUBS) ||
!strcmp(opcode, CLIENT_GIMMEDEFS)) {