libsecureboot: avoid recusion in ve_trust_init
set our guard value immediately. also replace call to ve_trust_init in opgp_sig.c:initialize with call to openpgp_trust_init. Reported by: mindal@semihalf.com Reviewed by: jhibbits obrien MFC after: 1 week
This commit is contained in:
parent
3f3f7c056f
commit
3ae2a848ae
@ -67,9 +67,7 @@ __FBSDID("$FreeBSD$");
|
|||||||
void
|
void
|
||||||
initialize (void)
|
initialize (void)
|
||||||
{
|
{
|
||||||
#ifdef _STANDALONE
|
openpgp_trust_init();
|
||||||
ve_trust_init();
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
@ -345,7 +345,7 @@ ve_trust_init(void)
|
|||||||
|
|
||||||
if (once >= 0)
|
if (once >= 0)
|
||||||
return (once);
|
return (once);
|
||||||
|
once = 0; /* to be sure */
|
||||||
ve_utc_set(time(NULL));
|
ve_utc_set(time(NULL));
|
||||||
#ifdef BUILD_UTC
|
#ifdef BUILD_UTC
|
||||||
ve_utc_set(BUILD_UTC); /* just in case */
|
ve_utc_set(BUILD_UTC); /* just in case */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user