Length of realm name is "realmsize", not "size"
authorJohn Carr <jfc@mit.edu>
Fri, 29 May 1992 12:14:45 +0000 (12:14 +0000)
committerJohn Carr <jfc@mit.edu>
Fri, 29 May 1992 12:14:45 +0000 (12:14 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2281 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/parse.c

index b1aacb2a7f9e3de28c72bf28c8f23818868cedf1..f89e74a64150d80f3173d62bdbd430b13569977c 100644 (file)
@@ -198,7 +198,7 @@ krb5_parse_name(name, nprincipal)
                 */
                for (i=0; i < components; i++)
                        krb5_princ_component(principal, i)->length = fcompsize[i];
-               krb5_princ_realm(principal)->length = size;
+               krb5_princ_realm(principal)->length = realmsize;
        }
        /*      
         * Now, we need to allocate the space for the strings themselves.....