mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-05-16 08:04:30 +03:00
pki: Handle error of pki_import_pubkey_buffer() correctly.
This commit is contained in:
parent
ca74d91d50
commit
3db2ac41eb
@ -648,9 +648,11 @@ static int pki_import_pubkey_buffer(ssh_buffer buffer,
|
|||||||
}
|
}
|
||||||
|
|
||||||
rc = pki_pubkey_build_ecdsa(key, nid, e);
|
rc = pki_pubkey_build_ecdsa(key, nid, e);
|
||||||
|
|
||||||
ssh_string_burn(e);
|
ssh_string_burn(e);
|
||||||
ssh_string_free(e);
|
ssh_string_free(e);
|
||||||
|
if (rc < 0) {
|
||||||
|
goto fail;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user