mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-03 19:55:31 +00:00
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 <colin.king@canonical.com> Signed-off-by: David Howells <dhowells@redhat.com>
This commit is contained in:
parent
8d4a2ec1e0
commit
952cca6a72
@ -650,7 +650,7 @@ int main(int argc, char **argv)
|
||||
}
|
||||
|
||||
hdr = fopen(headername, "w");
|
||||
if (!out) {
|
||||
if (!hdr) {
|
||||
perror(headername);
|
||||
exit(1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user