fix crash when b32addr is not provided during bootup

Signed-off-by: AGentooCat <agentoocat@mail.i2p>
This commit is contained in:
2025-06-12 07:56:38 +00:00
parent 85d230aa8c
commit 62843313fc

View File

@ -665,6 +665,7 @@ struct I2Host *lookup_host(char *b32addr, char *knownas, int force_lookup) {
if (!host->_under->success) goto samlookfail;
host->b64dest = get_samval(host->_under, "VALUE");
if (!b32addr && !(host->b32addr = b64to32(host->b64dest))) goto samlookfail;
lookup_mail(host);
return host;