mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Fixed the warnings " warning: variable ‘readbuff’ set but not used [-Wunused-but-set-variable]". Added error handling in the event that readbuff was NULL.
This commit is contained in:
parent
8d6243980f
commit
d653563331
1 changed files with 3 additions and 0 deletions
|
|
@ -2183,6 +2183,9 @@ void ProbeMode::probe_udpunpriv_event_handler(nsock_pool nsp, nsock_event nse, v
|
|||
case NSE_TYPE_READ:
|
||||
/* Do an actual read() of the recv data */
|
||||
readbuff=nse_readbuf(nse, &readbytes);
|
||||
if(readbuff==NULL){
|
||||
outFatal(QT_3, "Error: nse_readbuff failed to read in the from the probe");
|
||||
}
|
||||
/* Determine which target are we dealing with */
|
||||
nsi_getlastcommunicationinfo(nsi, NULL, &family, NULL, (struct sockaddr*)&peer, sizeof(struct sockaddr_storage) );
|
||||
if(family==AF_INET6){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue