1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-08-08 19:02:06 +03:00

pki: Make error handling code reachable again.

Found by Coverity.
This commit is contained in:
Andreas Schneider
2012-10-08 19:58:52 +02:00
parent 21db70888a
commit 3e93836e8b

View File

@@ -562,7 +562,7 @@ static int pki_import_pubkey_buffer(ssh_buffer buffer,
goto fail;
}
pubkey = buffer_get_ssh_string(buffer);
if (g == NULL) {
if (pubkey == NULL) {
ssh_string_burn(p);
ssh_string_free(p);
ssh_string_burn(q);