* keytab.c (is_xrealm_tgt): Use strncmp instead of strcmp - as
principal and realm name do not need to be null terminated.
ticket: new
tags: pullup
target_version: 1.3
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15466
dc483132-0cff-0310-8789-
dd5450dbe970
+2003-05-22 Ezra Peisach <epeisach@mit.edu>
+
+ * keytab.c (is_xrealm_tgt): Use strncmp instead of strcmp - as
+ principal and realm name do not need to be null terminated.
+
2003-04-01 Tom Yu <tlyu@mit.edu>
* Makefile.in: Remove $(SHLIB_DBLIB_DEPS) and related variables.
dat = krb5_princ_component(context, princ, 1);
if (dat->length != princ->realm.length)
return 1;
- if (strcmp(dat->data, princ->realm.data) == 0)
+ if (strncmp(dat->data, princ->realm.data, dat->length) == 0)
return 0;
return 1;