threerings / openvpn-auth-ldap

Implements username/password authentication via LDAP for OpenVPN 2.x.
Other
135 stars 62 forks source link

Fix crash with undefined username #88

Open zi0r opened 2 years ago

zi0r commented 2 years ago

Existing code tries to blindly create a TRString. If username is null, this results in a crash. Move the creation of the TRString to after the null check.