git.samba.org
/
lorikeet-heimdal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
933f805
)
asn1: Don't check for NULL when it's not (template_members())
author
Nicolas Williams
<nico@twosigma.com>
Wed, 4 Jan 2023 22:07:13 +0000
(16:07 -0600)
committer
Nicolas Williams
<nico@twosigma.com>
Wed, 4 Jan 2023 22:07:13 +0000
(16:07 -0600)
lib/asn1/gen_template.c
patch
|
blob
|
history
diff --git
a/lib/asn1/gen_template.c
b/lib/asn1/gen_template.c
index ad25fcfb29d3a29a0015a55c97822663e7410864..67d18ecfff5bbabadb931584cf1693bcb7e71dc1 100644
(file)
--- a/
lib/asn1/gen_template.c
+++ b/
lib/asn1/gen_template.c
@@
-1238,7
+1238,7
@@
template_members(struct templatehead *temp,
is_primitive_type(t->subtype);
if (t->tag.tagenv == TE_IMPLICIT) {
- Type *t2 = t->subtype
? t->subtype : t->symbol->type
;
+ Type *t2 = t->subtype;
while (t2->type == TType && (t2->subtype || t2->symbol->type))
t2 = t2->subtype ? t2->subtype : t2->symbol->type;