mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 02:38:09 +09:00
kex1: Add missing NULL check in make_rsa1_string()
CID 1388445
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit c705fb6e3b)
This commit is contained in:
@@ -50,6 +50,10 @@ static ssh_string make_rsa1_string(ssh_string e, ssh_string n){
|
|||||||
ssh_string ret = NULL;
|
ssh_string ret = NULL;
|
||||||
|
|
||||||
buffer = ssh_buffer_new();
|
buffer = ssh_buffer_new();
|
||||||
|
if (buffer == NULL) {
|
||||||
|
goto error;
|
||||||
|
}
|
||||||
|
|
||||||
rsa = ssh_string_from_char("ssh-rsa1");
|
rsa = ssh_string_from_char("ssh-rsa1");
|
||||||
if (rsa == NULL) {
|
if (rsa == NULL) {
|
||||||
goto error;
|
goto error;
|
||||||
|
|||||||
Reference in New Issue
Block a user