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: libmbse.a:
Removed the fdn parameter from the attach and un_attach Removed the fdn parameter from the attach and un_attach
functions, not needed anymore. 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: libnodelist.a:
Fixed IP port override if there is a port added to a protocol. Fixed IP port override if there is a port added to a protocol.

View File

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