pkinit use kerberos_private_is_kdc_req()
authorStefan Metzmacher <metze@samba.org>
Thu, 10 Jan 2019 11:02:53 +0000 (12:02 +0100)
committerStefan Metzmacher <metze@samba.org>
Sun, 20 Jan 2019 22:14:58 +0000 (23:14 +0100)
Change-Id: I1937c1bf4759548a20f042f6a2c5482f7dbac2b1

epan/dissectors/asn1/kerberos/kerberos.cnf

index 73a9090..befcc10 100644 (file)
@@ -172,10 +172,10 @@ KrbFastArmorTypes UPPER_CASE_FIRST
                break;
        case KERBEROS_PA_PK_AS_REP_OLD:
                private_data->is_win2k_pkinit = TRUE;
-               if (private_data->kdc_response) {
-                       offset=dissect_ber_octet_string_wcb(FALSE, actx, sub_tree, tvb, offset,hf_index, dissect_pkinit_PA_PK_AS_REP_Win2k);
-               } else {
+               if (kerberos_private_is_kdc_req(private_data)) {
                        offset=dissect_ber_octet_string_wcb(FALSE, actx, sub_tree, tvb, offset,hf_index, dissect_pkinit_PA_PK_AS_REQ_Win2k);
+               } else {
+                       offset=dissect_ber_octet_string_wcb(FALSE, actx, sub_tree, tvb, offset,hf_index, dissect_pkinit_PA_PK_AS_REP_Win2k);
                }
                break;
        case KERBEROS_PA_PK_AS_REQ: