brl / obfuscated-openssh

Other
421 stars 121 forks source link

Fixed num_permitted_opens not enough caused request denied #4

Closed athurg closed 6 years ago

athurg commented 11 years ago

i think num_permitted_opens and num_adm_permitted_opens are both variable used to set valid number be opened by each channel.

ANY of them is not zero, we should create a connect for them.

So the condition in the code !permit || !permit_adm should be replaced by !permit && !permit_adm