fix bug #1594: compositions must be differentiated by both protocol and summary, not only the summary - otherwise this results in a single entry if two protocols share the same summary, e.g. TCP/UDP "Bad Checksum"

svn path=/trunk/; revision=23696
This commit is contained in:
Ulf Lamping 2007-12-02 10:13:57 +00:00
parent e8ca13de9e
commit e4d7a5c236
1 changed files with 2 additions and 1 deletions

View File

@ -197,7 +197,8 @@ static gint find_summary_data(error_equiv_table *err, const expert_info_t *exper
return -1;
}
for (i=0;i<err->num_procs;i++) {
if (strcmp(err->procedures[i].entries[2], expert_data->summary) == 0) {
if (strcmp(err->procedures[i].entries[1], expert_data->protocol) == 0 &&
strcmp(err->procedures[i].entries[2], expert_data->summary) == 0) {
return i;
}
}