Fix cut-paste bug in clean_credentials (coverity reported)

Signed-off-by: Malahal Naineni <malahal@us.ibm.com>