server: Fixed a possible NULL pointer dereference. (cherry picked from commit 7e4916cefcc3a44557944e0f9573a9982d2a2ccd)
server: Fixed a possible NULL pointer dereference.
(cherry picked from commit 7e4916cefcc3a44557944e0f9573a9982d2a2ccd)

mwgoldsmith/ssh,mwgoldsmith/libssh,mwgoldsmith/libssh,mwgoldsmith/ssh,miloj/libssh-v0.5,mwgoldsmith/ssh,miloj/libssh-v0.5,mwgoldsmith/libssh,miloj/libssh-v0.5,mwgoldsmith/ssh,mwgoldsmith/libssh,miloj/libssh-v0.5