From: Theodore Tso Date: Thu, 2 Jun 1994 17:00:17 +0000 (+0000) Subject: Don't allow two @ signs in a principal.. X-Git-Tag: krb5-1.0-beta4~173 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=31aaa9a3add16acf99258022e8292cf2e7785d76;p=krb5.git Don't allow two @ signs in a principal.. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3678 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/parse.c b/src/lib/krb5/krb/parse.c index c8d6eb8a9..4d3fe143a 100644 --- a/src/lib/krb5/krb/parse.c +++ b/src/lib/krb5/krb/parse.c @@ -116,9 +116,10 @@ krb5_parse_name(name, nprincipal) size = 0; i++; } else if (c == REALM_SEP) { - if (!*(cp+1)) + if (parsed_realm || !*(cp+1)) /* - * Null Realm names are not allowed! + * Multiple realm separaters or null + * realm names are not allowed! */ return(KRB5_PARSE_MALFORMED); parsed_realm = cp+1;