Commit 22e71d7
committed
Fix return value.
Instead of wrongfully always returning OK, return the real error code.
This was uncovered by the amalgamation via the warning:
```
pre_gen/tomcrypt_amalgam.c: In function ‘der_decode_custom_type_ex’:
pre_gen/tomcrypt_amalgam.c:49820:10: warning: ‘*(unsigned int *)((char *)&ident + offsetof(ltc_asn1_list, type))’ may be used uninitialized [-Wmaybe-uninitialized]
49820 | if ((ident.type != root->type) ||
| ^
pre_gen/tomcrypt_amalgam.c:49780:18: note: ‘*(unsigned int *)((char *)&ident + offsetof(ltc_asn1_list, type))’ was declared here
49780 | ltc_asn1_list ident;
| ^~~~~
```
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>1 parent 00f662d commit 22e71d7
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
0 commit comments