don't allow trailing backslashes in components
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11511 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -140,6 +140,12 @@ krb5_parse_name(krb5_context context,
|
||||
c = '\b';
|
||||
else if(c == '0')
|
||||
c = '\0';
|
||||
else if(c == '\0') {
|
||||
krb5_set_error_string (context,
|
||||
"trailing \\ in principal name");
|
||||
ret = KRB5_PARSE_MALFORMED;
|
||||
goto exit;
|
||||
}
|
||||
}else if(c == '/' || c == '@'){
|
||||
if(got_realm){
|
||||
krb5_set_error_string (context,
|
||||
|
Reference in New Issue
Block a user