From 2511cd1d2ac7c7892ae22f01d83d917abdab38ef Mon Sep 17 00:00:00 2001 From: batrick Date: Fri, 16 Sep 2011 18:33:52 +0000 Subject: [PATCH] fixed wrong (global) variable name --- nselib/bittorrent.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nselib/bittorrent.lua b/nselib/bittorrent.lua index e4c80b468..b8435080a 100755 --- a/nselib/bittorrent.lua +++ b/nselib/bittorrent.lua @@ -1155,7 +1155,7 @@ Torrent = local hello_connection_id = "00 00 04 17 27 10 19 80" -- identification of the protocol local hello_packet = bin.pack("HHA", hello_connection_id, hello_action, hello_transaction_id) local status, msg = socket:sendto(host, port, hello_packet) - if not status then return false, err end + if not status then return false, msg end status, msg = socket:receive() if not status then return false, "Could not connect to tracker:"..tracker.." reason:"..msg end