Password login will cause ocserv crash when the user name is locked

With password authentication enabled and the user is locked by command ocpasswd, the login to that user will cause the ocserv server crash.

syslog showed Aug 22 10:58:55 W500 kernel: [1944599.698112] ocserv-sm[8087]: segfault at 0 ip b731a3bb sp bfbfa36c error 4 in libc-2.24.so[b71e5000+1b1000]

other infos

ocserv --version

ocserv 0.11.6

Compiled with seccomp, tcp-wrappers, oath, radius, gssapi, PAM, PKCS#11, AnyConnect, GnuTLS version: 3.5.8 (compiled with 3.5.7)

uname -a

Linux W500 3.18.46-rt50 #1 (closed) SMP PREEMPT RT Thu Feb 2 12:09:53 PST 2017 i686 GNU/Linux