Fix cvs ignore base64 error value

base64decoder  migth return -1, so the addition end_cred = cred+i might end up doing end_cred less than cred. so the expression while(*p && p!=cred_end) p++; may lead to accessing invalid memory, unless if we find a null character