From: Theodore Tso Date: Fri, 10 Jun 1994 23:01:37 +0000 (+0000) Subject: Use the KRB5_TGS_NAME macro for "krbtgt" X-Git-Tag: krb5-1.0-beta4~112 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b568139896964ec5af4acacd478f933c241f38a8;p=krb5.git Use the KRB5_TGS_NAME macro for "krbtgt" git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3741 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/kdc/kdc_util.c b/src/kdc/kdc_util.c index e32be1fac..a85466714 100644 --- a/src/kdc/kdc_util.c +++ b/src/kdc/kdc_util.c @@ -1086,8 +1086,9 @@ char **status; /* can not proxy ticket granting tickets */ if (isflagset(request->kdc_options, KDC_OPT_PROXY) && (!request->server->data || - request->server->data[0].length != 6 || - memcmp(request->server->data[0].data, "krbtgt", 6))) { + request->server->data[0].length != KRB5_TGS_NAME_SIZE || + memcmp(request->server->data[0].data, KRB5_TGS_NAME, + KRB5_TGS_NAME_SIZE))) { *status = "CAN'T PROXY TGT"; return KDC_ERR_BADOPTION; }