fetcher: Always delete the tmp host key file after getting its fingerprint
This commit is contained in:
parent
744d4f2ffa
commit
5ee72e37f5
|
@ -240,6 +240,8 @@ namespace SparkleLib {
|
||||||
// WaitForExit, or it will hang forever on output > 4096 bytes
|
// WaitForExit, or it will hang forever on output > 4096 bytes
|
||||||
string fingerprint = process.StandardOutput.ReadToEnd ().Trim ();
|
string fingerprint = process.StandardOutput.ReadToEnd ().Trim ();
|
||||||
process.WaitForExit ();
|
process.WaitForExit ();
|
||||||
|
|
||||||
|
File.Delete (tmp_file_path);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
fingerprint = fingerprint.Substring (fingerprint.IndexOf (" ") + 1, 47);
|
fingerprint = fingerprint.Substring (fingerprint.IndexOf (" ") + 1, 47);
|
||||||
|
@ -249,8 +251,6 @@ namespace SparkleLib {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
File.Delete (tmp_file_path);
|
|
||||||
|
|
||||||
return fingerprint;
|
return fingerprint;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue