Skip to content

Commit d6f37d4

Browse files
committed
examples/asn1/asn1.c: remove now-redundant fclose(fp) in asn1App_ReadFile() (which also was incorrectly closing stdin). see #6905.
1 parent 8fc7545 commit d6f37d4

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

examples/asn1/asn1.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,6 @@ static int asn1App_ReadFile(FILE* fp, unsigned char** pdata, word32* plen)
9292
/* Set data to new pointer. */
9393
data = p;
9494
}
95-
/* Done with file. */
96-
fclose(fp);
9795
}
9896

9997
if (data != NULL) {

0 commit comments

Comments
 (0)