mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-28 00:04:30 +02:00
fix possible NULL deref when built without FIDO
Analysis/fix from kircher in bz3443; ok dtucker@
This commit is contained in:
parent
f5ba85dadd
commit
7d25b37fb2
3
ssh-sk.c
3
ssh-sk.c
@ -127,10 +127,11 @@ sshsk_open(const char *path)
|
|||||||
ret->sk_enroll = ssh_sk_enroll;
|
ret->sk_enroll = ssh_sk_enroll;
|
||||||
ret->sk_sign = ssh_sk_sign;
|
ret->sk_sign = ssh_sk_sign;
|
||||||
ret->sk_load_resident_keys = ssh_sk_load_resident_keys;
|
ret->sk_load_resident_keys = ssh_sk_load_resident_keys;
|
||||||
|
return ret;
|
||||||
#else
|
#else
|
||||||
error("internal security key support not enabled");
|
error("internal security key support not enabled");
|
||||||
|
goto fail;
|
||||||
#endif
|
#endif
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
if ((ret->dlhandle = dlopen(path, RTLD_NOW)) == NULL) {
|
if ((ret->dlhandle = dlopen(path, RTLD_NOW)) == NULL) {
|
||||||
error("Provider \"%s\" dlopen failed: %s", path, dlerror());
|
error("Provider \"%s\" dlopen failed: %s", path, dlerror());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user