Bugs item #867, was opened at 2009-01-08 16:02 Status: Open Priority: 3 Submitted By: MadHat Unspecific (unspecific) Assigned to: Nobody (None) Summary: OpenVAS Client Error in XML output Coruption Resolution: None Severity: minor Version: v2.0 Component: openvas-client Operating System: All Product: OpenVAS Hardware: None URL:
Initial Comment: When ouputing to XML, the entry for nessus/openvas breaks because it has a "/" in the name. The code is below but I don't have the time or knowledge to fix it right now. In the NBE it looks like this: results|localhost|scanner.localhost|nessus/openvas (1241/tcp) In the XML it looks like this: <port protocol="openvas (1241/tcp" portid="1241"> <service name="nessus/openvas" method="nessus" conf="3" /> </port> This is either doing a conversion from the NBE or doing a direct XML output. This is from the SVN version, just updated. Updated to revision 2170. xml_output_ng.c:Line 498 getproto (char *str) { int i=0, offset=0, len=strlen (str); char *ret = emalloc (len); for (i=0;i<len; i++) if (str[i] == '(') break; i++; for (i=0;i<len; i++) if (str[i] == '/') break; i++; for (i=i;i<len; i++) if (str[i] != ')') ret[offset++] = str[i]; else break; ret[offset] = '\0'; return ret; } ---------------------------------------------------------------------- You can respond by visiting: http://wald.intevation.org/tracker/?func=detail&atid=220&aid=867&group_id=29 _______________________________________________ Openvas-devel mailing list Openvas-devel@wald.intevation.org http://lists.wald.intevation.org/mailman/listinfo/openvas-devel