gosp / lua-resty-ntlm

nginx ntlm module implemented by lua
MIT License
27 stars 13 forks source link

thread aborted: ******/lualib/resty/ntlm.lua:72: bad argument #1 to 'sub' (string expected, got nil) #6

Open ccxhwmy opened 1 year ago

ccxhwmy commented 1 year ago

Hi~ I use the lua-resty-ntlm master branch and find that it generated stack tracebak:

2022/09/01 19:45:01 [error] 25011#0: anyuid: waf.centos62.wangchengcheng.test.vmware-25011-688157189-110-15 lua entry thread aborted: runtime error: ********/lualib/resty/ntlm.lua:72: bad argument #1 to 'sub' (string expected, got nil)
242 stack traceback:
243 coroutine 0:
244     [C]: in function 'sub'
245     ********/lualib/resty/ntlm.lua:72: in function 'parselen'
246     ********/lualib/resty/ntlm.lua:204: in function 'ntlm_transaction'
247     ********/lualib/resty/ntlm.lua:241: in function 'negotiate'
248     ********/lua/some_test.lua:8: in function 'test_ntlm'