Changeset

12467:ccbdebb43e23

Merge 0.12->trunk
author Matthew Wild <mwild1@gmail.com>
date Wed, 13 Apr 2022 18:46:26 +0100
parents 12465:4a087713cffe (current diff) 12466:9ee41552bca0 (diff)
children 12468:353836684009
files
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/util/prosodyctl/check.lua	Wed Apr 13 16:53:19 2022 +0200
+++ b/util/prosodyctl/check.lua	Wed Apr 13 18:46:26 2022 +0100
@@ -153,7 +153,7 @@
 	local alloc_response, err = receive_packet();
 	if not alloc_response then
 		result.error = "TURN server did not response to allocation request: "..err;
-		return;
+		return result;
 	elseif alloc_response:is_err_resp() then
 		result.error = ("TURN allocation failed: %d (%s)"):format(alloc_response:get_error());
 		return result;
@@ -245,7 +245,7 @@
 	local pong_data = ping_response:get_attribute("data");
 	if not pong_data then
 		result.error = "No data relayed from remote server";
-		return;
+		return result;
 	end
 	local pong = stun.new_packet():deserialize(pong_data);