diff options
Diffstat (limited to 'sshd.c')
-rw-r--r-- | sshd.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -122,8 +122,8 @@ | |||
122 | #ifdef LIBWRAP | 122 | #ifdef LIBWRAP |
123 | #include <tcpd.h> | 123 | #include <tcpd.h> |
124 | #include <syslog.h> | 124 | #include <syslog.h> |
125 | int allow_severity = LOG_INFO; | 125 | int allow_severity; |
126 | int deny_severity = LOG_WARNING; | 126 | int deny_severity; |
127 | #endif /* LIBWRAP */ | 127 | #endif /* LIBWRAP */ |
128 | 128 | ||
129 | #ifndef O_NOCTTY | 129 | #ifndef O_NOCTTY |
@@ -1747,6 +1747,8 @@ main(int ac, char **av) | |||
1747 | audit_connection_from(remote_ip, remote_port); | 1747 | audit_connection_from(remote_ip, remote_port); |
1748 | #endif | 1748 | #endif |
1749 | #ifdef LIBWRAP | 1749 | #ifdef LIBWRAP |
1750 | allow_severity = options.log_facility|LOG_INFO; | ||
1751 | deny_severity = options.log_facility|LOG_WARNING; | ||
1750 | /* Check whether logins are denied from this host. */ | 1752 | /* Check whether logins are denied from this host. */ |
1751 | if (packet_connection_is_on_socket()) { | 1753 | if (packet_connection_is_on_socket()) { |
1752 | struct request_info req; | 1754 | struct request_info req; |