forked from osmocom/wireshark
ISAKMP: Fix handling of cert requests without CA
Check IKEv1 Certificate Request Payloads for an empty Certificate Authority field, which is allowed by RFC 2408. Suppress dissection of this field if it is indeed empty. Change-Id: Ifb997e460a4c12003215fde86c374cfc769c5d72 Reviewed-on: https://code.wireshark.org/review/17501 Reviewed-by: Michael Mann <mmann78@netscape.net> Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
This commit is contained in:
parent
474199a974
commit
70f3737c3e
|
@ -4148,6 +4148,9 @@ dissect_certreq(tvbuff_t *tvb, int offset, int length, proto_tree *tree, int isa
|
|||
|
||||
if (isakmp_version == 1)
|
||||
{
|
||||
if (length == 0)
|
||||
return;
|
||||
|
||||
switch(cert_type){
|
||||
case 4:
|
||||
dissect_x509if_Name(FALSE, tvb, offset, &asn1_ctx, tree, hf_isakmp_certreq_authority_sig);
|
||||
|
|
Loading…
Reference in New Issue