1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-15 04:09:01 +00:00

Fix assertion failure when logtype==LOG_SKID_NOXLT

This commit is contained in:
dmiller
2012-07-03 17:22:47 +00:00
parent f7ba1847cf
commit fadfc6b71c

View File

@@ -951,7 +951,10 @@ void log_vwrite(int logt, const char *fmt, va_list ap) {
len = alloc_vsprintf(&writebuf, fmt, ap);
if (writebuf == NULL)
fatal("%s: alloc_vsprintf failed.", __func__);
l = logtype;
if (logtype == LOG_SKID_NOXLT)
l = LOG_SKID;
else
l = logtype;
fileidx = 0;
while ((l & 1) == 0) {
fileidx++;