mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +00:00
Use serviceDeductions::erase() and not constructor to reset the object.
This commit is contained in:
parent
53e6be8f28
commit
782f59634e
1 changed files with 1 additions and 1 deletions
|
|
@ -267,7 +267,7 @@ void PortList::getServiceDeductions(u16 portno, int protocol, struct serviceDedu
|
|||
const struct nservent *service;
|
||||
|
||||
/* Look up the service name. */
|
||||
*sd = serviceDeductions();
|
||||
sd->erase();
|
||||
service = nmap_getservbyport(portno, protocol);
|
||||
if (service != NULL)
|
||||
sd->name = service->s_name;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue