pem: Ensure a value before checking Proc-Type in PEM header
This commit is contained in:
@@ -250,7 +250,7 @@ static status_t pem_to_bin(chunk_t *blob, bool *pgp)
|
|||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (match("Proc-Type", &name) && *value.ptr == '4')
|
if (match("Proc-Type", &name) && value.len && *value.ptr == '4')
|
||||||
{
|
{
|
||||||
encrypted = TRUE;
|
encrypted = TRUE;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user