mirror of
https://github.com/nmap/nmap.git
synced 2025-12-22 23:49:03 +00:00
Eliminate a couple of (false) uninitialized variable warnings in
scan_engine.cc. Patch by Daniel Roethlisberger.
This commit is contained in:
@@ -1557,7 +1557,7 @@ void UltraScanInfo::Init(vector<Target *> &Targets, struct scan_lists *pts, styp
|
|||||||
changes after initialization. */
|
changes after initialization. */
|
||||||
unsigned int UltraScanInfo::numProbesPerHost()
|
unsigned int UltraScanInfo::numProbesPerHost()
|
||||||
{
|
{
|
||||||
unsigned int numprobes;
|
unsigned int numprobes = 0;
|
||||||
|
|
||||||
if (tcp_scan) {
|
if (tcp_scan) {
|
||||||
numprobes = ports->tcp_count;
|
numprobes = ports->tcp_count;
|
||||||
@@ -2403,7 +2403,7 @@ static bool ultrascan_port_pspec_update(UltraScanInfo *USI,
|
|||||||
HostScanStats *hss,
|
HostScanStats *hss,
|
||||||
const probespec *pspec,
|
const probespec *pspec,
|
||||||
int newstate) {
|
int newstate) {
|
||||||
u16 portno;
|
u16 portno = 0;
|
||||||
u8 proto = 0;
|
u8 proto = 0;
|
||||||
int oldstate = PORT_TESTING;
|
int oldstate = PORT_TESTING;
|
||||||
Port *currentp;
|
Port *currentp;
|
||||||
|
|||||||
Reference in New Issue
Block a user