Fix: infinite loop when a test case fails to login
Fix: infinite loop when a test case fails to login

Signed-off-by: Marcelo Cerri <8921b6f701ecf8f7360835b51eec13069e5013ec@linux.vnet.ibm.com>
Reviewed-by: Joy Latten <d52cec510126fd47fd8d2fded238791e9e5bd0bf@linux.vnet.ibm.com>

joylatten/opencryptoki,fingunter/OpenCryptoki,fingunter/OpenCryptoki,joylatten/opencryptoki,joylatten/opencryptoki,joylatten/opencryptoki,joylatten/opencryptoki,fingunter/OpenCryptoki,fingunter/OpenCryptoki