diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/krb5/krb/parse.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/krb5/krb/parse.c b/src/lib/krb5/krb/parse.c index cf3cce9d0d..613e41d1ff 100644 --- a/src/lib/krb5/krb/parse.c +++ b/src/lib/krb5/krb/parse.c @@ -79,6 +79,8 @@ allocate_princ(krb5_context context, const char *name, krb5_boolean enterprise, } else if (*p == '@' && (!enterprise || !first_at)) { /* Realm separator. In enterprise principals, the first one of * these we see is part of the component. */ + if (cur_data == &princ->realm) + return KRB5_PARSE_MALFORMED; cur_data = &princ->realm; } else { /* Component or realm character, possibly quoted. Make note if |
