resolve an "undefined code" situation.
the old code was undefined, but ok (variables where never used again in the "goto error" case). but the new code should be clearer on this. git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@3658 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
9dd1407703
commit
aadf09d1de
@ -3723,7 +3723,8 @@ sc_pkcs15init_parse_info(sc_card_t *card,
|
||||
while (p < end && (tag = *p++) != 0 && tag != 0xFF) {
|
||||
int r = 0;
|
||||
|
||||
if (p >= end || p + (n = *p++) > end)
|
||||
n = *p; p++;
|
||||
if (p >= end || p + n > end)
|
||||
goto error;
|
||||
|
||||
switch (tag) {
|
||||
|
Loading…
Reference in New Issue
Block a user