Module Name: src Committed By: christos Date: Mon May 24 21:34:07 UTC 2021
Modified Files: src/distrib/utils/libhack: wrap.c Log Message: refuse should exit(3). Noted by joerg@ To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/distrib/utils/libhack/wrap.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/distrib/utils/libhack/wrap.c diff -u src/distrib/utils/libhack/wrap.c:1.1 src/distrib/utils/libhack/wrap.c:1.2 --- src/distrib/utils/libhack/wrap.c:1.1 Mon Mar 8 19:06:44 2021 +++ src/distrib/utils/libhack/wrap.c Mon May 24 17:34:06 2021 @@ -28,9 +28,10 @@ */ #include <sys/cdefs.h> -__RCSID("$NetBSD: wrap.c,v 1.1 2021/03/09 00:06:44 christos Exp $"); +__RCSID("$NetBSD: wrap.c,v 1.2 2021/05/24 21:34:06 christos Exp $"); #include <tcpd.h> +#include <stdlib.h> struct request_info * request_init(struct request_info *ri, ...) @@ -53,4 +54,6 @@ hosts_access(struct request_info *ri) void refuse(struct request_info *ri) { + /* We don't need to wait for inetd, or eat the connection data here */ + exit(EXIT_FAILURE); }