forked from osmocom/wireshark
pkixqualified: Clear the oid at the start of each QCStatement
Clear the object_identifier_id global at the beginning of each QCStatement, in case the statementId BER has errors and does not put a value in the ptr. (call_ber_oid_callback correctly handles being passed a NULL.) Fix #18552.
This commit is contained in:
parent
9866cf3bad
commit
925904d6ce
|
@ -26,6 +26,9 @@ SRVName B "1.3.6.1.5.5.7.8.7" "id-on-dnsSRV"
|
|||
|
||||
#.FIELD_RENAME
|
||||
|
||||
#.FN_HDR QCStatement
|
||||
object_identifier_id = NULL;
|
||||
|
||||
#.FN_PARS QCStatement/statementId
|
||||
FN_VARIANT = _str HF_INDEX = hf_pkixqualified_statementId VAL_PTR = &object_identifier_id
|
||||
|
||||
|
|
|
@ -223,6 +223,8 @@ static const ber_sequence_t QCStatement_sequence[] = {
|
|||
|
||||
static int
|
||||
dissect_pkixqualified_QCStatement(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
|
||||
object_identifier_id = NULL;
|
||||
|
||||
offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset,
|
||||
QCStatement_sequence, hf_index, ett_pkixqualified_QCStatement);
|
||||
|
||||
|
|
Loading…
Reference in New Issue