sign/ed25519: fix return value if no correct keys in file

Fix the return value if file doesn't contains correct public key(s).

Signed-off-by: Denis Pynkin <denis.pynkin@collabora.com>
This commit is contained in:
Denis Pynkin 2020-06-17 16:21:35 +00:00
parent ce73876389
commit ede93dc2ef
1 changed files with 2 additions and 0 deletions

View File

@ -546,6 +546,8 @@ _load_pk_from_file (OstreeSign *self,
return glnx_throw (error,
"signature: ed25519: no valid keys in file '%s'",
filename);
else
return FALSE;
}
return TRUE;