Skip to content
Snippets Groups Projects
Commit 798661ad authored by rswindell's avatar rswindell
Browse files

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);
parent 703289d1
No related branches found
No related tags found
No related merge requests found
......@@ -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:{},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment