fix crash when refreshing hosts

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

View File

@ -631,6 +631,10 @@ void refresh_hosts(struct I2Host *host) {
free(host->mailsrv);
}
host->mailsrvl = host->from_cache = 0;
if (!host->_under) {
host->_under = samcomm(ctlsock, "NAMING", "LOOKUP", "NAME", host->b32addr, "OPTIONS", "true", NULL);
if (!host->_under || !host->_under->success) return;
}
lookup_mail(host);
}