1
1

legacy: Fix possible null pointer dereference

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Этот коммит содержится в:
Andreas Schneider 2018-10-01 20:48:17 +02:00
родитель 9c3ba94960
Коммит 80be1d0ee9

Просмотреть файл

@ -545,6 +545,10 @@ ssh_string publickey_to_string(ssh_public_key pubkey) {
ssh_string key_blob;
int rc;
if (pubkey == NULL) {
return NULL;
}
key = ssh_key_new();
if (key == NULL) {
return NULL;