Software /
code /
prosody
Comparison
plugins/mod_dialback.lua @ 10380:18685a5e362e
mod_dialback: Fix potential traceback in case of missing addressing
Not tested. Assuming nothing good comes from continuing the program flow
after this. The connection should get closed and the event gets aborted
by a traceback anyways.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 02 Nov 2019 15:40:20 +0100 |
parent | 10376:b337df192a10 |
child | 11526:15a3db955ad3 |
comparison
equal
deleted
inserted
replaced
10379:b917602eac04 | 10380:18685a5e362e |
---|---|
105 origin.log("warn", "%s tried to connect to %s, which we don't serve", from, to); | 105 origin.log("warn", "%s tried to connect to %s, which we don't serve", from, to); |
106 origin:close("host-unknown"); | 106 origin:close("host-unknown"); |
107 return true; | 107 return true; |
108 elseif not from then | 108 elseif not from then |
109 origin:close("improper-addressing"); | 109 origin:close("improper-addressing"); |
110 return true; | |
110 end | 111 end |
111 | 112 |
112 if dwd and origin.secure then | 113 if dwd and origin.secure then |
113 if check_cert_status(origin, from) == false then | 114 if check_cert_status(origin, from) == false then |
114 return | 115 return |