# | Line 212 | Line 212 | auth_dns_callback(void *vptr, const stru | |
---|---|---|
212 | ||
213 | if (namelength > HOSTLEN) | |
214 | auth_sendheader(auth->client, REPORT_HOST_TOOLONG); | |
215 | < | else if (!auth_verify_hostname(name)) |
215 | > | else if (auth_verify_hostname(name) == 0) |
216 | auth_sendheader(auth->client, REPORT_HOST_INVALID); | |
217 | else | |
218 | { | |
# | Line 230 | Line 230 | auth_dns_callback(void *vptr, const stru | |
230 | static void | |
231 | auth_error(struct AuthRequest *auth) | |
232 | { | |
233 | + | assert(auth); |
234 | + | assert(auth->fd); |
235 | + | |
236 | ++ServerStats.is_abad; | |
237 | ||
238 | fd_close(auth->fd); |
– | Removed lines |
+ | Added lines |
< | Changed lines (old) |
> | Changed lines (new) |