diff --git a/portlist.cc b/portlist.cc index 1d958d334..ef7fccf4e 100644 --- a/portlist.cc +++ b/portlist.cc @@ -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;