Fix segfault on install in some situations
This commit is contained in:
@@ -1306,7 +1306,7 @@ NMAPReadConfigFile(const unsigned char *file, unsigned char **output)
|
||||
goto nmapfinish;
|
||||
}
|
||||
|
||||
*output = malloc(sizeof(unsigned char) * (count+1));
|
||||
*output = MemMalloc(sizeof(unsigned char) * (count+1));
|
||||
written = NMAPReadCount(conn, *output, count);
|
||||
NMAPReadCrLf(conn);
|
||||
if (written != count) {
|
||||
|
||||
Reference in New Issue
Block a user