auth: NULL pointer check
Merge branch 'master' of github.com:atheme/tethys