summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/watchdog/wd_heartbeat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/watchdog/wd_heartbeat.c b/src/watchdog/wd_heartbeat.c
index c13e12b6c..561cdfccf 100644
--- a/src/watchdog/wd_heartbeat.c
+++ b/src/watchdog/wd_heartbeat.c
@@ -271,7 +271,7 @@ wd_create_hb_recv_socket(WdHbIf * hb_if)
hints.ai_family = AF_UNSPEC;
hints.ai_socktype = SOCK_DGRAM;
hints.ai_protocol = 0;
- hints.ai_flags = AI_NUMERICSERV;
+ hints.ai_flags = AI_NUMERICSERV | AI_PASSIVE;
if ((gai_ret = getaddrinfo(NULL, portstr, &hints, &res)) != 0)
{