mirror of
git://anongit.mindrot.org/openssh.git
synced 2025-02-05 16:41:32 +00: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_sign = ssh_sk_sign;
|
||||
ret->sk_load_resident_keys = ssh_sk_load_resident_keys;
|
||||
return ret;
|
||||
#else
|
||||
error("internal security key support not enabled");
|
||||
goto fail;
|
||||
#endif
|
||||
return ret;
|
||||
}
|
||||
if ((ret->dlhandle = dlopen(path, RTLD_NOW)) == NULL) {
|
||||
error("Provider \"%s\" dlopen failed: %s", path, dlerror());
|
||||
|
Loading…
Reference in New Issue
Block a user