Do not check pointer, but length of a chunk

This commit is contained in:
Martin Willi
2010-05-05 11:35:54 +02:00
parent 37c2aac89d
commit 75d4322d68
+1 -1
View File
@@ -528,7 +528,7 @@ static void *pem_load(credential_type_t type, int subtype, va_list args)
break;
}
if (pem.ptr)
if (pem.len)
{
return load_from_blob(pem, type, subtype, cb, cb_data, flags);
}