Skip to content

Commit

Permalink
Fall through on error return
Browse files Browse the repository at this point in the history
If decoding the encoded_req_body fails, proceed goto errout instead of falling
through to fast handling.

Looks like a merge error.

Reindented code.

ticket: 6449

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22183 dc483132-0cff-0310-8789-dd5450dbe970
  • Loading branch information
epeisach committed Apr 8, 2009
1 parent 03f7364 commit e4a65c8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/kdc/do_as_req.c
Expand Up @@ -144,9 +144,10 @@ process_as_req(krb5_kdc_req *request, krb5_data *req_pkt,
}
if (fetch_asn1_field((unsigned char *) req_pkt->data,
1, 4, &encoded_req_body) != 0) {
errcode = ASN1_BAD_ID;
status = "Finding req_body";
}
errcode = ASN1_BAD_ID;
status = "Finding req_body";
goto errout;
}
errcode = kdc_find_fast(&request, &encoded_req_body, NULL /*TGS key*/, NULL, state);
if (errcode) {
status = "error decoding FAST";
Expand Down

0 comments on commit e4a65c8

Please sign in to comment.