Skip to content

Commit

Permalink
HG: fix d0fe7d to include earlier versions
Browse files Browse the repository at this point in the history
  • Loading branch information
soumagne committed Aug 23, 2024
1 parent d0fe7d4 commit a0b935a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/mercury_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1227,12 +1227,15 @@ hg_core_init(const char *na_info_string, bool na_listen, unsigned int version,
hg_init_info = *hg_init_info_p;
na_init_info_dup_4_0(&na_init_info, &hg_init_info.na_init_info);
na_init_info.traffic_class = hg_init_info.traffic_class;
} else if (HG_VERSION_GE(version, HG_VERSION(2, 3)))
} else if (HG_VERSION_GE(version, HG_VERSION(2, 3))) {
hg_init_info_dup_2_3(&hg_init_info,
(const struct hg_init_info_2_3 *) hg_init_info_p);
else
na_init_info_dup_4_0(&na_init_info, &hg_init_info.na_init_info);
} else {
hg_init_info_dup_2_2(&hg_init_info,
(const struct hg_init_info_2_2 *) hg_init_info_p);
na_init_info_dup_4_0(&na_init_info, &hg_init_info.na_init_info);
}

HG_LOG_SUBSYS_DEBUG(cls,
"HG Init info: na_class=%p, request_post_init=%" PRIu32
Expand Down

0 comments on commit a0b935a

Please sign in to comment.