linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] sm-notify needs to call res_init() before each try
@ 2017-10-12 15:06 Steve Dickson
  2017-10-25 19:31 ` Steve Dickson
  0 siblings, 1 reply; 2+ messages in thread
From: Steve Dickson @ 2017-10-12 15:06 UTC (permalink / raw)
  To: Linux NFS Mailing list

From: Orion Poplawski <orion@nwra.com>

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=625531

Signed-off-by: Steve Dickson <steved@redhat.com>
---
 utils/statd/sm-notify.c | 4 ++++
 1 file changed, 4 insertions(+)

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 <netdb.h>
 #include <errno.h>
 #include <grp.h>
+#include <netinet/in.h>
+#include <arpa/nameser.h>
+#include <resolv.h>
 
 #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));
-- 
2.13.6


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-10-25 19:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-12 15:06 [PATCH] sm-notify needs to call res_init() before each try Steve Dickson
2017-10-25 19:31 ` Steve Dickson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).