pem: Ensure a value before checking Proc-Type in PEM header
This commit is contained in:
1 parent
aed77b0961
commit
b72718f4b8
1 file changed
+1
-1
@@ -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