mirror of
https://github.com/nmap/nmap.git
synced 2026-08-27 03:48:14 +00:00
Allow a fingerprint to have an empty description in parse_single_fingerprint.
This is used by OSassist which often has to read such prints. Previously it caused a parse error.
This commit is contained in:
parent
7cf7259f9d
commit
6f9f79cabf
1 changed files with 1 additions and 1 deletions
|
|
@ -941,7 +941,7 @@ FingerPrint *parse_single_fingerprint(char *fprint_orig) {
|
|||
|
||||
q = strchr(p, '\n');
|
||||
if (!q) q = p + strlen(p);
|
||||
while(isspace(*(--q)))
|
||||
while(q > p && isspace(*(--q)))
|
||||
;
|
||||
|
||||
if (q < p) fatal("Parse error on line %d of fingerprint: %s", lineno, nextline);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue