mirror of
https://github.com/nmap/nmap.git
synced 2025-12-16 04:39:03 +00:00
Fix assertion failure when logtype==LOG_SKID_NOXLT
This commit is contained in:
@@ -951,7 +951,10 @@ void log_vwrite(int logt, const char *fmt, va_list ap) {
|
|||||||
len = alloc_vsprintf(&writebuf, fmt, ap);
|
len = alloc_vsprintf(&writebuf, fmt, ap);
|
||||||
if (writebuf == NULL)
|
if (writebuf == NULL)
|
||||||
fatal("%s: alloc_vsprintf failed.", __func__);
|
fatal("%s: alloc_vsprintf failed.", __func__);
|
||||||
l = logtype;
|
if (logtype == LOG_SKID_NOXLT)
|
||||||
|
l = LOG_SKID;
|
||||||
|
else
|
||||||
|
l = logtype;
|
||||||
fileidx = 0;
|
fileidx = 0;
|
||||||
while ((l & 1) == 0) {
|
while ((l & 1) == 0) {
|
||||||
fileidx++;
|
fileidx++;
|
||||||
|
|||||||
Reference in New Issue
Block a user