View | Details | Raw Unified | Return to bug 25263
Collapse All | Expand All

(-)auth1.c (-1 / +2 lines)
Lines 458-464 Link Here
458
		}
458
		}
459
#endif  /* HAVE_LOGIN_CAP */
459
#endif  /* HAVE_LOGIN_CAP */
460
#ifdef LOGIN_ACCESS
460
#ifdef LOGIN_ACCESS
461
		if (pw != NULL && !login_access(pw->pw_name, from_host)) {
461
		if (pw != NULL && !login_access(pw->pw_name, from_host)
462
		    && !login_access(pw->pw_name, from_ip)) {
462
		  log("Denied connection for %.200s from %.200s [%.200s].",
463
		  log("Denied connection for %.200s from %.200s [%.200s].",
463
		      pw->pw_name, from_host, from_ip);
464
		      pw->pw_name, from_host, from_ip);
464
		  packet_disconnect("Sorry, you are not allowed to connect.");
465
		  packet_disconnect("Sorry, you are not allowed to connect.");
(-)auth2.c (-1 / +2 lines)
Lines 248-254 Link Here
248
#endif  /* HAVE_LOGIN_CAP */
248
#endif  /* HAVE_LOGIN_CAP */
249
#ifdef LOGIN_ACCESS
249
#ifdef LOGIN_ACCESS
250
	if (authctxt->pw != NULL &&
250
	if (authctxt->pw != NULL &&
251
	    !login_access(authctxt->pw->pw_name, from_host)) {
251
	    !login_access(authctxt->pw->pw_name, from_host) &&
252
	    !login_access(authctxt->pw->pw_name, from_ip)) {
252
		log("Denied connection for %.200s from %.200s [%.200s].",
253
		log("Denied connection for %.200s from %.200s [%.200s].",
253
		    authctxt->pw->pw_name, from_host, from_ip);
254
		    authctxt->pw->pw_name, from_host, from_ip);
254
		packet_disconnect("Sorry, you are not allowed to connect.");
255
		packet_disconnect("Sorry, you are not allowed to connect.");

Return to bug 25263