Skip to content

Commit

Permalink
fix adding Via line when there is no routing to destination.
Browse files Browse the repository at this point in the history
Bug report by Tommi Koivula, 2:221/1
  • Loading branch information
dukelsky committed Dec 2, 2018
1 parent 1032d0d commit 85e6182
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion h/cvsdate.h
Original file line number Diff line number Diff line change
@@ -1 +1 @@
char cvs_date[]="2018-09-09";
char cvs_date[]="2018-12-02";
2 changes: 1 addition & 1 deletion hpt.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%define reldate 20180909
%define reldate 20181202
%define reltype C
# may be one of: C (current), R (release), S (stable)

Expand Down
4 changes: 2 additions & 2 deletions src/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ int packMsg(HMSG SQmsg, XMSG *xmsg, s_area *area)
virtualLink = safe_malloc(sizeof(s_link)); /* if not create new virtualLink link */
memset(virtualLink, '\0', sizeof(s_link));
virtualLink->hisAka = msg.destAddr;
virtualLink->ourAka = &(msg.origAddr);
virtualLink->ourAka = config->addr;
virtualLink->name = (char *) safe_malloc(strlen(msg.toUserName)+1);
strcpy(virtualLink->name, msg.toUserName);
freeVirtualLink = 1; /* virtualLink is a temporary link, please free it.. */
Expand Down Expand Up @@ -551,7 +551,7 @@ int packMsg(HMSG SQmsg, XMSG *xmsg, s_area *area)
r = createOutboundFileName(virtualLink, prio, PKT);
}
if (r == 0) {
addViaToMsg(&msg, msg.origAddr);
addViaToMsg(&msg, *(config->addr));
makePktHeader(virtualLink, &header);
pkt = openPktForAppending(arcNetmail ? virtualLink->pktFile : virtualLink->floFile, &header);
writeMsgToPkt(pkt, msg);
Expand Down

0 comments on commit 85e6182

Please sign in to comment.