stnoonan / spnego-http-auth-nginx-module

SPNEGO HTTP Authentication Module for nginx
Other
275 stars 112 forks source link

Fix check of no realm in username #148

Open simayosi opened 6 months ago

simayosi commented 6 months ago

Since headers_in.user.data is not terminated by NUL, p is not NULL for a no-realm username if the password contains '@'. This patch fixes it by replacing ngx_strchr with ngx_strlchr.