legacy: Fix possible null pointer dereference
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Этот коммит содержится в:
родитель
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;
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user