Fixed 5d address names when zone is different then our own

This commit is contained in:
Michiel Broek 2004-08-07 20:38:40 +00:00
parent c4e7b8a6fc
commit 90a0614a7f
2 changed files with 7 additions and 6 deletions

View File

@ -11,6 +11,8 @@ v0.61.3 25-Jul-2004
libmbse.a:
Removed the fdn parameter from the attach and un_attach
functions, not needed anymore.
Fixed function to return full 5d address in the outbound when
the address is in a different zone then our own zone.
libnodelist.a:
Fixed IP port override if there is a port added to a protocol.

View File

@ -30,6 +30,8 @@
#include "../config.h"
#include "mbselib.h"
#include "users.h"
#include "mbsedb.h"
#ifndef PATH_MAX
@ -70,11 +72,8 @@ char *prepbuf(faddr *addr)
*/
if (addr && addr->domain && strlen(addr->domain)) {
domain = xstrcpy(addr->domain);
} else
for (i = 0; i < 40; i++)
if (CFG.aka[i].zone == addr->zone) {
domain = xstrcpy(CFG.aka[i].domain);
break;
} else {
domain = xstrcpy(GetFidoDomain(addr->zone));
}
if ((domain != NULL) && (strlen(CFG.aka[0].domain) != 0) && (strcasecmp(domain,CFG.aka[0].domain) != 0)) {