From b94ceaa05b34c25cd2613505b9ff5c305efb4bba Mon Sep 17 00:00:00 2001 From: dmiller Date: Sat, 14 Apr 2018 02:11:00 +0000 Subject: [PATCH] Fix error message, copy/paste mistake. See #1183 --- service_scan.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/service_scan.cc b/service_scan.cc index c6e3e5943..1fc805688 100644 --- a/service_scan.cc +++ b/service_scan.cc @@ -1097,9 +1097,9 @@ int ServiceProbeMatch::getVersionStr(const u8 *subject, int subjectlen, } rc = dotmplsubst(subject, subjectlen, ovector, nummatches, cpe_templates[i], cpe, cpelen, transform_cpe); if (rc != 0) { - error("Warning: Servicescan failed to fill cpe_%c (subjectlen: %d, devicetypelen: %d). Too long? Match string was line %d: d/%s/", part, subjectlen, devicetypelen, deflineno, - (devicetype_template)? devicetype_template : ""); - if (devicetypelen > 0) *devicetype = '\0'; + error("Warning: Servicescan failed to fill cpe_%c (subjectlen: %d, cpelen: %d). Too long? Match string was line %d: %s", part, subjectlen, cpelen, deflineno, + (cpe_templates[i])? cpe_templates[i] : ""); + if (cpelen > 0) *cpe = '\0'; retval = -1; } }