fix: check scan return
This commit is contained in:
parent
eb2d9b1ecf
commit
1ce702d169
@ -20,7 +20,8 @@ void *routine(void *p_data)
|
||||
scan_data.port = port;
|
||||
scan_data.response =
|
||||
&thread_data->responses[thread_data->port_start - port];
|
||||
scan(&scan_data);
|
||||
if (scan(&scan_data))
|
||||
return NULL;
|
||||
printf("state of port %d: %d\n", port,
|
||||
scan_data.response->state);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user