Do not check pointer, but length of a chunk
This commit is contained in:
1 parent
37c2aac89d
commit
75d4322d68
1 file changed
+1
-1
@@ -528,7 +528,7 @@ static void *pem_load(credential_type_t type, int subtype, va_list args)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pem.ptr)
|
if (pem.len)
|
||||||
{
|
{
|
||||||
return load_from_blob(pem, type, subtype, cb, cb_data, flags);
|
return load_from_blob(pem, type, subtype, cb, cb_data, flags);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user