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:
Johan Danielsson
2002-10-21 15:30:53 +00:00
parent 345023512b
commit cf87a976ce

View File

@@ -140,6 +140,12 @@ krb5_parse_name(krb5_context context,
c = '\b'; c = '\b';
else if(c == '0') else if(c == '0')
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 == '@'){ }else if(c == '/' || c == '@'){
if(got_realm){ if(got_realm){
krb5_set_error_string (context, krb5_set_error_string (context,