1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-16 12:49:02 +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,6 +951,9 @@ 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__);
if (logtype == LOG_SKID_NOXLT)
l = LOG_SKID;
else
l = logtype; l = logtype;
fileidx = 0; fileidx = 0;
while ((l & 1) == 0) { while ((l & 1) == 0) {