Use the KRB5_TGS_NAME macro for "krbtgt"
authorTheodore Tso <tytso@mit.edu>
Fri, 10 Jun 1994 23:01:37 +0000 (23:01 +0000)
committerTheodore Tso <tytso@mit.edu>
Fri, 10 Jun 1994 23:01:37 +0000 (23:01 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3741 dc483132-0cff-0310-8789-dd5450dbe970

src/kdc/kdc_util.c

index e32be1fac0fdd622c3cd1d5c30b5855533380db4..a85466714972490c6092d68f443b8b7d94785d69 100644 (file)
@@ -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;
     }