1
0
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:
Andreas Schneider 2012-10-07 21:53:37 +02:00
parent ca74d91d50
commit 3db2ac41eb

View File

@ -648,9 +648,11 @@ static int pki_import_pubkey_buffer(ssh_buffer buffer,
}
rc = pki_pubkey_build_ecdsa(key, nid, e);
ssh_string_burn(e);
ssh_string_free(e);
if (rc < 0) {
goto fail;
}
}
break;
#endif