diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2015-10-22 12:52:16 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2015-10-22 12:52:16 +0000 |
commit | a95fa23326e82cf1fef6487ff9b74837190f0a0f (patch) | |
tree | 227f47e2957c35a607b3121e3b58f8335fae0b41 /libexec/rpc.yppasswdd | |
parent | 7e493b27516acecb72368fc0f0d8100356345408 (diff) |
use crypt_checkpass to check password
Diffstat (limited to 'libexec/rpc.yppasswdd')
-rw-r--r-- | libexec/rpc.yppasswdd/yppasswdd_mkpw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/rpc.yppasswdd/yppasswdd_mkpw.c b/libexec/rpc.yppasswdd/yppasswdd_mkpw.c index 260115e65d0..514cb240ff4 100644 --- a/libexec/rpc.yppasswdd/yppasswdd_mkpw.c +++ b/libexec/rpc.yppasswdd/yppasswdd_mkpw.c @@ -1,4 +1,4 @@ -/* $OpenBSD: yppasswdd_mkpw.c,v 1.31 2013/11/27 21:25:40 deraadt Exp $ */ +/* $OpenBSD: yppasswdd_mkpw.c,v 1.32 2015/10/22 12:52:15 tedu Exp $ */ /* * Copyright (c) 1994 Mats O Jansson <moj@stacken.kth.se> @@ -169,7 +169,7 @@ make_passwd(yppasswd *argp) EXPAND(pw.pw_dir); EXPAND(pw.pw_shell); - if (strcmp(crypt(argp->oldpass, pw.pw_passwd), pw.pw_passwd) != 0) + if (crypt_checkpass(argp->oldpass, pw.pw_passwd) != 0) goto fail; if (!nopw && badchars(argp->newpw.pw_passwd)) |