Fix memory leak
authorSam Hartman <hartmans@mit.edu>
Mon, 30 Nov 2009 14:14:47 +0000 (14:14 +0000)
committerSam Hartman <hartmans@mit.edu>
Mon, 30 Nov 2009 14:14:47 +0000 (14:14 +0000)
ticket: 6585

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23384 dc483132-0cff-0310-8789-dd5450dbe970

src/kdc/fast_util.c

index 310faf09a931f76b2469d8165e28f27e9b5c225d..a47c512d490cb186a4a88e1ca9b4b2f0c3d52821 100644 (file)
@@ -151,7 +151,8 @@ kdc_find_fast(krb5_kdc_req **requestptr,
                 if (tgs_subkey) {
                     krb5_set_error_message( kdc_context, KRB5KDC_ERR_PREAUTH_FAILED,
                                             "Ap-request armor not permitted with TGS");
-                    return KRB5KDC_ERR_PREAUTH_FAILED;
+                    retval =  KRB5KDC_ERR_PREAUTH_FAILED;
+                    break;
                 }
                 retval = armor_ap_request(state, fast_armored_req->armor);
                 break;