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
[ Upstream commit 08843dc ]

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]>
Signed-off-by: Nicolas Morey-Chaisemartin <[email protected]>
  • Loading branch information
markhaywood authored and nmorey committed Apr 30, 2019
1 parent 89a9b26 commit 12244b6
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 12244b6

Please sign in to comment.