Skip to content

Commit 952cca6

Browse files
Colin Ian Kingdhowells
Colin Ian King
authored andcommitted
ASN.1: fix open failure check on headername
The check for a failed open on headername is incorrectly checking on the out FILE pointer rather than the hdr. Fix this. Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: David Howells <[email protected]>
1 parent 8d4a2ec commit 952cca6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: scripts/asn1_compiler.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ int main(int argc, char **argv)
650650
}
651651

652652
hdr = fopen(headername, "w");
653-
if (!out) {
653+
if (!hdr) {
654654
perror(headername);
655655
exit(1);
656656
}

0 commit comments

Comments
 (0)