Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 952cca6a authored by Colin Ian King's avatar Colin Ian King Committed by David Howells
Browse files

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: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
parent 8d4a2ec1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -650,7 +650,7 @@ int main(int argc, char **argv)
	}

	hdr = fopen(headername, "w");
	if (!out) {
	if (!hdr) {
		perror(headername);
		exit(1);
	}