1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-21 06:59:01 +00:00

Qualify an assertion to allow zero-byte writes in Nsock. The assertion

checked that the internal buffer was not empty before a send; I changed
it to have an effect only when at least one byte has been written
already.

Formerly, zero-byte sends such as socket:send("") in NSE would crash
Nmap, for both UDP and TCP. I tested this change on Linux, and for UDP
it sends a zero-byte datagram, and for TCP it sends nothing at all.
This commit is contained in:
david
2010-02-15 20:21:29 +00:00
parent cd0e6496c6
commit 3f36981440

View File

@@ -2,6 +2,12 @@
[NOT YET RELEASED] [NOT YET RELEASED]
o Qualified an assertion to allow zero-byte sends in Nsock. Without
this, an NSE script could cause this assertion failure by doing
socket:send(""):
nmap: nsock_core.c:516: handle_write_result: Assertion `bytesleft > 0' failed.
[David]
o Added a service probe for Logitech SqueezeCenter command line interface o Added a service probe for Logitech SqueezeCenter command line interface
[Patrik] [Patrik]