Fixed prod_to_dev_downgrade_allowed logic in validate_transition

The documentation for the prod_to_dev_downgrade_allowed function pointer
reads, "If NULL, treated as if the function always returns false."

Return `LIBCR51SIGN_ERROR_DEV_DOWNGRADE_DISALLOWED` if prod_to_dev
allowed return false or is NULL.

Change-Id: I4750256d308096e706bb9e0e0266d365b6f5a026
Signed-off-by: Willy Tu <wltu@google.com>
1 file changed