/* $OpenBSD: refuse.c,v 1.2 2009/10/27 23:59:30 deraadt Exp $ */ /* * refuse() reports a refused connection, and takes the consequences: in * case of a datagram-oriented service, the unread datagram is taken from * the input queue (or inetd would see the same datagram again and again); * the program is terminated. * * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. */ /* System libraries. */ #include #include /* Local stuff. */ #include "tcpd.h" /* refuse - refuse request */ void refuse(request) struct request_info *request; { syslog(deny_severity, "refused connect from %s", eval_client(request)); clean_exit(request); /* NOTREACHED */ }