diff --git a/portlist.cc b/portlist.cc index 490d486e2..5872a5502 100644 --- a/portlist.cc +++ b/portlist.cc @@ -326,7 +326,7 @@ void Port::setServiceProbeResults(enum serviceprobestate sres, if (sname) serviceprobe_service = strdup(sname); else - sname = NULL; + serviceprobe_service = NULL; if (fingerprint) serviceprobe_fp = strdup(fingerprint);