From 48135410c1b86023b86dbee52c470ce30a164cab Mon Sep 17 00:00:00 2001 From: David Malone Date: Sun, 4 Apr 2004 21:32:23 +0000 Subject: [PATCH] The list of (key,value) pairs to request_init is terminated by a 0 key, not NULL. Submitted by: Stefan Farfeleder MFC after: 3 days --- usr.sbin/inetd/inetd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c index b1f31daf1133..331f873928f0 100644 --- a/usr.sbin/inetd/inetd.c +++ b/usr.sbin/inetd/inetd.c @@ -751,7 +751,7 @@ main(int argc, char **argv) inetd_setproctitle("wrapping", ctrl); service = sep->se_server_name ? sep->se_server_name : sep->se_service; - request_init(&req, RQ_DAEMON, service, RQ_FILE, ctrl, NULL); + request_init(&req, RQ_DAEMON, service, RQ_FILE, ctrl, 0); fromhost(&req); deny_severity = LIBWRAP_DENY_FACILITY|LIBWRAP_DENY_SEVERITY; allow_severity = LIBWRAP_ALLOW_FACILITY|LIBWRAP_ALLOW_SEVERITY;