- (djm) Fix OSF SIA auth NULL pointer deref. Report from Mike Battersby

<mib@unimelb.edu.au>
This commit is contained in:
Damien Miller 2001-02-12 18:02:23 +11:00
parent f172020510
commit 61ce036c4a
2 changed files with 5 additions and 3 deletions

View File

@ -4,6 +4,8 @@
implicit rpm-3.0.5 dependancy explicit. Patch and suggestions from implicit rpm-3.0.5 dependancy explicit. Patch and suggestions from
Pekka Savola <pekkas@netcore.fi> Pekka Savola <pekkas@netcore.fi>
- (djm) Clean up PCRE text in INSTALL - (djm) Clean up PCRE text in INSTALL
- (djm) Fix OSF SIA auth NULL pointer deref. Report from Mike Battersby
<mib@unimelb.edu.au>
20010211 20010211
- (bal) OpenBSD Sync - (bal) OpenBSD Sync
@ -3900,4 +3902,4 @@
- Wrote replacements for strlcpy and mkdtemp - Wrote replacements for strlcpy and mkdtemp
- Released 1.0pre1 - Released 1.0pre1
$Id: ChangeLog,v 1.746 2001/02/12 00:15:41 djm Exp $ $Id: ChangeLog,v 1.747 2001/02/12 07:02:23 djm Exp $

View File

@ -267,9 +267,9 @@ do_authloop(Authctxt *authctxt)
/* Do SIA auth with password */ /* Do SIA auth with password */
if (sia_validate_user(NULL, saved_argc, saved_argv, if (sia_validate_user(NULL, saved_argc, saved_argv,
get_canonical_hostname(options.reverse_mapping_check), get_canonical_hostname(options.reverse_mapping_check),
pw->pw_name, NULL, 0, NULL, password) == SIASUCCESS) { authctxt->user?authctxt->user:"NOUSER", NULL,
0, NULL, password) == SIASUCCESS)
authenticated = 1; authenticated = 1;
}
#else /* !USE_PAM && !HAVE_OSF_SIA */ #else /* !USE_PAM && !HAVE_OSF_SIA */
/* Try authentication with the password. */ /* Try authentication with the password. */
authenticated = auth_password(pw, password); authenticated = auth_password(pw, password);