mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-28 08:14:24 +02:00
Add null check for ssh parameter (#219)
fix for https://github.com/PowerShell/Win32-OpenSSH/issues/905
This commit is contained in:
parent
97565d8b4f
commit
be80763b87
@ -3963,6 +3963,8 @@ channel_disable_adm_local_opens(struct ssh *ssh)
|
||||
void
|
||||
channel_clear_permitted_opens(struct ssh *ssh)
|
||||
{
|
||||
if(ssh == NULL)
|
||||
return;
|
||||
struct ssh_channels *sc = ssh->chanctxt;
|
||||
|
||||
sc->permitted_opens = xrecallocarray(sc->permitted_opens,
|
||||
|
Loading…
x
Reference in New Issue
Block a user