Lines 612-618
Link Here
|
612 |
class->origin = cve; |
612 |
class->origin = cve; |
613 |
idmef_string_set(&class->name, ref_cve); |
613 |
idmef_string_set(&class->name, ref_cve); |
614 |
|
614 |
|
615 |
len += strlen(ref_cve) + 1; |
615 |
/* len += strlen(ref_cve) + 1; */ |
|
|
616 |
len = strlen(ref_cve) + strlen(CVE_URL) + 1; |
616 |
cve_url = malloc(len); |
617 |
cve_url = malloc(len); |
617 |
if ( ! cve_url ) { |
618 |
if ( ! cve_url ) { |
618 |
if ( usage & OPT_KB_SRC ) |
619 |
if ( usage & OPT_KB_SRC ) |
Lines 621-627
Link Here
|
621 |
} |
622 |
} |
622 |
|
623 |
|
623 |
sprintf(cve_url, "%s%s", CVE_URL, ref_cve); |
624 |
sprintf(cve_url, "%s%s", CVE_URL, ref_cve); |
624 |
cve_url[len] = '\0'; |
625 |
cve_url[len-1] = '\0'; |
625 |
|
626 |
|
626 |
idmef_string_set(&class->url, cve_url); |
627 |
idmef_string_set(&class->url, cve_url); |
627 |
|
628 |
|