mirror of
https://github.com/nmap/nmap.git
synced 2025-12-18 05:29:02 +00:00
Remove a fingerprint parsing error that can't happen anymore.
This commit is contained in:
@@ -940,8 +940,6 @@ FingerPrint *parse_single_fingerprint(char *fprint_orig) {
|
|||||||
while(q > p && isspace(*(--q)))
|
while(q > p && isspace(*(--q)))
|
||||||
;
|
;
|
||||||
|
|
||||||
if (q < p) fatal("Parse error on line %d of fingerprint: %s", lineno, nextline);
|
|
||||||
|
|
||||||
FP->OS_name = (char *) cp_alloc(q - p + 2);
|
FP->OS_name = (char *) cp_alloc(q - p + 2);
|
||||||
memcpy(FP->OS_name, p, q - p + 1);
|
memcpy(FP->OS_name, p, q - p + 1);
|
||||||
FP->OS_name[q - p + 1] = '\0';
|
FP->OS_name[q - p + 1] = '\0';
|
||||||
|
|||||||
Reference in New Issue
Block a user