From 5781bae4276348e4331cd3824c161c231e507f01 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Wed, 25 Oct 2017 15:30:10 -0400 Subject: sm-notify needs to call res_init() before each try Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=625531 Signed-off-by: Steve Dickson --- utils/statd/sm-notify.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'utils/statd/sm-notify.c') diff --git a/utils/statd/sm-notify.c b/utils/statd/sm-notify.c index d216ddb..d961dc0 100644 --- a/utils/statd/sm-notify.c +++ b/utils/statd/sm-notify.c @@ -28,6 +28,9 @@ #include #include #include +#include +#include +#include #include "conffile.h" #include "sockaddr.h" @@ -90,6 +93,7 @@ smn_lookup(const char *name) }; int error; + res_init(); error = getaddrinfo(name, NULL, &hint, &ai); if (error != 0) { xlog(D_GENERAL, "getaddrinfo(3): %s", gai_strerror(error)); -- cgit