Commit 6402a1af authored by Gary Wong's avatar Gary Wong

Close temporary files when writing certificates and keys.

Since this is the obvious fix to libabac not working after the upgrade
to 0.1.9.
parent 2337ab6d
......@@ -754,6 +754,7 @@ sub WriteToFile($;$)
}
print $tempfile "-----END RSA PRIVATE KEY-----\n";
}
close $tempfile;
return $filename;
}
......@@ -1040,6 +1041,7 @@ sub WriteKeyToFile($)
print $tempfile $self->privkey();
print $tempfile "-----END RSA PRIVATE KEY-----\n";
close $tempfile;
return $filename;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment