Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144475550
D40068.1774865150.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D40068.1774865150.diff
View Options
diff --git a/crypto/openssh/sshd.c b/crypto/openssh/sshd.c
--- a/crypto/openssh/sshd.c
+++ b/crypto/openssh/sshd.c
@@ -142,8 +142,6 @@
#ifdef LIBWRAP
#include <tcpd.h>
#include <syslog.h>
-extern int allow_severity;
-extern int deny_severity;
#endif /* LIBWRAP */
/* Re-exec fds */
@@ -1303,7 +1301,7 @@
* exactly. sshguard, and supposedly lots
* of custom made scripts rely on it.
*/
- syslog(deny_severity,
+ syslog(LOG_WARNING,
"refused connect from %s (%s)",
eval_client(&req),
eval_hostaddr(req.client));
@@ -2112,14 +2110,6 @@
/* Reinitialize the log (because of the fork above). */
log_init(__progname, options.log_level, options.log_facility, log_stderr);
-#ifdef LIBWRAP
- /*
- * We log refusals ourselves. However, libwrap will report
- * syntax errors in hosts.allow via syslog(3).
- */
- allow_severity = options.log_facility|LOG_INFO;
- deny_severity = options.log_facility|LOG_WARNING;
-#endif
/* Avoid killing the process in high-pressure swapping environments. */
if (!inetd_flag && madvise(NULL, 0, MADV_PROTECT) != 0)
debug("madvise(): %.200s", strerror(errno));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 30, 10:05 AM (8 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28229346
Default Alt Text
D40068.1774865150.diff (1 KB)
Attached To
Mode
D40068: sshd: remove unneeded initialization of libwrap logging severities
Attached
Detach File
Event Timeline
Log In to Comment