summaryrefslogtreecommitdiff
path: root/auth-options.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth-options.c')
-rw-r--r--auth-options.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/auth-options.c b/auth-options.c
index 8595fdc14..0e146ab15 100644
--- a/auth-options.c
+++ b/auth-options.c
@@ -10,7 +10,7 @@
10 */ 10 */
11 11
12#include "includes.h" 12#include "includes.h"
13RCSID("$OpenBSD: auth-options.c,v 1.26 2002/07/30 17:03:55 markus Exp $"); 13RCSID("$OpenBSD: auth-options.c,v 1.28 2003/06/02 09:17:34 markus Exp $");
14 14
15#include "xmalloc.h" 15#include "xmalloc.h"
16#include "match.h" 16#include "match.h"
@@ -173,7 +173,7 @@ auth_parse_options(struct passwd *pw, char *opts, char *file, u_long linenum)
173 if (strncasecmp(opts, cp, strlen(cp)) == 0) { 173 if (strncasecmp(opts, cp, strlen(cp)) == 0) {
174 const char *remote_ip = get_remote_ipaddr(); 174 const char *remote_ip = get_remote_ipaddr();
175 const char *remote_host = get_canonical_hostname( 175 const char *remote_host = get_canonical_hostname(
176 options.verify_reverse_mapping); 176 options.use_dns);
177 char *patterns = xmalloc(strlen(opts) + 1); 177 char *patterns = xmalloc(strlen(opts) + 1);
178 178
179 opts += strlen(cp); 179 opts += strlen(cp);
@@ -201,7 +201,7 @@ auth_parse_options(struct passwd *pw, char *opts, char *file, u_long linenum)
201 if (match_host_and_ip(remote_host, remote_ip, 201 if (match_host_and_ip(remote_host, remote_ip,
202 patterns) != 1) { 202 patterns) != 1) {
203 xfree(patterns); 203 xfree(patterns);
204 log("Authentication tried for %.100s with " 204 logit("Authentication tried for %.100s with "
205 "correct key but not from a permitted " 205 "correct key but not from a permitted "
206 "host (host=%.200s, ip=%.200s).", 206 "host (host=%.200s, ip=%.200s).",
207 pw->pw_name, remote_host, remote_ip); 207 pw->pw_name, remote_host, remote_ip);
@@ -287,7 +287,7 @@ next_option:
287 return 1; 287 return 1;
288 288
289bad_option: 289bad_option:
290 log("Bad options in %.100s file, line %lu: %.50s", 290 logit("Bad options in %.100s file, line %lu: %.50s",
291 file, linenum, opts); 291 file, linenum, opts);
292 auth_debug_add("Bad options in %.100s file, line %lu: %.50s", 292 auth_debug_add("Bad options in %.100s file, line %lu: %.50s",
293 file, linenum, opts); 293 file, linenum, opts);