148
151
resolvedname = get_canonical_hostname(options.use_dns);
149
152
ipaddr = get_remote_ipaddr();
151
154
debug2("userauth_hostbased: chost %s resolvedname %s ipaddr %s",
152
155
chost, resolvedname, ipaddr);
154
162
if (options.hostbased_uses_name_from_packet_only) {
155
163
if (auth_rhosts2(pw, cuser, chost, chost) == 0)
163
167
if (strcasecmp(resolvedname, chost) != 0)
164
168
logit("userauth_hostbased mismatch: "
165
169
"client sends %s, but we resolve %s to %s",