svn rev #21862: trunk/src/kdc/
raeburn@MIT.EDU
raeburn at MIT.EDU
Mon Feb 2 13:10:34 EST 2009
http://src.mit.edu/fisheye/changelog/krb5/?cs=21862
Commit By: raeburn
Log Message:
reapply memchr patch
Changed Files:
U trunk/src/kdc/do_tgs_req.c
Modified: trunk/src/kdc/do_tgs_req.c
===================================================================
--- trunk/src/kdc/do_tgs_req.c 2009-02-02 17:39:59 UTC (rev 21861)
+++ trunk/src/kdc/do_tgs_req.c 2009-02-02 18:10:30 UTC (rev 21862)
@@ -1068,7 +1068,6 @@
prep_reprocess_req(krb5_kdc_req *request, krb5_principal *krbtgt_princ)
{
krb5_error_code retval = KRB5KRB_AP_ERR_BADMATCH;
- size_t len = 0;
char **realms, **cpp, *temp_buf=NULL;
krb5_data *comp1 = NULL, *comp2 = NULL;
char *comp1_str = NULL;
@@ -1110,11 +1109,8 @@
(krb5_match_config_pattern(kdc_active_realm->realm_no_host_referral, "*") == FALSE &&
krb5_match_config_pattern(kdc_active_realm->realm_no_host_referral, comp1_str) == FALSE))) {
- for (len=0; len < comp2->length; len++) {
- if (comp2->data[len] == '.') break;
- }
- if (len == comp2->length)
- goto cleanup;
+ if (memchr(comp2->data, '.', comp2->length) == NULL)
+ goto cleanup;
temp_buf = calloc(1, comp2->length+1);
if (!temp_buf){
retval = ENOMEM;
More information about the cvs-krb5
mailing list