Skip to content

Commit

Permalink
ibacm: fix double hint.ai_family assignment in ib_acm_connect_open()
Browse files Browse the repository at this point in the history
It appears that a previous fix accidentally introduced a double
assignment to hint.ai_family and, in the process, accidentally removed
the assignment to hint.ai_protocol. This patch will fix both
assignments.

Fixes: 579b6bf ("ibacm: Adding new configuration option 'server_mode'")

Signed-off-by: Mark Haywood <[email protected]>
  • Loading branch information
markhaywood committed Apr 26, 2019
1 parent 75ce931 commit 08843dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ibacm/src/libacm.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ static int ib_acm_connect_open(char *dest)
acm_set_server_port();
memset(&hint, 0, sizeof hint);

hint.ai_family = AF_INET;
hint.ai_family = AF_UNSPEC;
hint.ai_protocol = IPPROTO_TCP;

ret = getaddrinfo(dest, NULL, &hint, &res);
if (ret)
Expand Down

0 comments on commit 08843dc

Please sign in to comment.