The list of (key,value) pairs to request_init is terminated by a 0 key,

not NULL.

Submitted by:	Stefan Farfeleder <stefan@fafoe.narf.at>
MFC after:	3 days
This commit is contained in:
David Malone 2004-04-04 21:32:23 +00:00
parent dfd6a083db
commit 48135410c1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=127865

View File

@ -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;