From 798661adc5503d5ed7b5c1dca39e0de9ff9a0755 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Mon, 4 May 2020 22:58:33 +0000
Subject: [PATCH] Force binkit_to_addr to be an object (FIDO.Addr) to prevent
 the error:   line 205: TypeError: addr.flo_outbound is not a function when
 callout() is called with a string as the first argument. Dan_C was trying to
 send an outbox file to a link with no binkp password which results in
 callout() being called with a string for the first argument (addr) due to
 this logic in callout_auth_cb(): 	if (!bp.cb_data.binkitpw ||
 bp.cb_data.binkitpw === '-') 		addrs.push(bp.cb_data.binkit_to_addr);

---
 exec/binkit.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/exec/binkit.js b/exec/binkit.js
index fe7b51ba28..f8209d75b9 100644
--- a/exec/binkit.js
+++ b/exec/binkit.js
@@ -614,7 +614,7 @@ function callout(addr, scfg, locks, bicfg)
 	bp.crypt_support = bicfg.crypt_support;
 	bp.cb_data = {
 		binkitcfg:bicfg,
-		binkit_to_addr:addr,
+		binkit_to_addr:FIDO.parse_addr(addr, myaddr.zone, myaddr.domain),
 		binkit_scfg:scfg,
 		binkit_file_actions:{},
 		binkit_flow_contents:{},
-- 
GitLab