diff options
author | John Thacker <johnthacker@gmail.com> | 2022-12-13 21:35:57 -0500 |
---|---|---|
committer | AndersBroman <a.broman58@gmail.com> | 2022-12-14 15:51:09 +0000 |
commit | 925904d6ce2926306aa2a3093f24246ca3ecfd18 (patch) | |
tree | 1c8d3d35098f417286f1de19c6223f8a9ad1a3cb /epan/dissectors/packet-pkixqualified.c | |
parent | 9866cf3bad222809b72fc3d455946b0d308c806a (diff) |
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.
Diffstat (limited to 'epan/dissectors/packet-pkixqualified.c')
-rw-r--r-- | epan/dissectors/packet-pkixqualified.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/epan/dissectors/packet-pkixqualified.c b/epan/dissectors/packet-pkixqualified.c index f3afe761e5..284cf871b3 100644 --- a/epan/dissectors/packet-pkixqualified.c +++ b/epan/dissectors/packet-pkixqualified.c @@ -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); |