vtysh: Fix, guard against NULL pointer dereference

getpwuid() may fail returning a null value leaving subsequent
code vulnerable to a null pointer dereference.

Tested-by: NetDEF CI System <cisystem@netdef.org>
1 file changed