fix crash when refreshing hosts
Signed-off-by: AGentooCat <agentoocat@mail.i2p>
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user