summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1996-10-23 14:50:30 +0000
committerwpaul <wpaul@FreeBSD.org>1996-10-23 14:50:30 +0000
commit0450c4ad17dcd54b6be8cab5f47d733e6e00a50d (patch)
treed157761ef0a74989fae1676b088e746c2fc1ec79 /lib
parenta989e7ab3adeebc74c56fb507cefab2427a59411 (diff)
downloadFreeBSD-src-0450c4ad17dcd54b6be8cab5f47d733e6e00a50d.zip
FreeBSD-src-0450c4ad17dcd54b6be8cab5f47d733e6e00a50d.tar.gz
Fix a core dump condition I discovered the other day (right
after I installed the last SNAP :). Because of the way the 'use NIS or local?' logic is set up here, it was possible to force the use of the NIS password changer even though the specified user didn't exist in NIS (i.e. # passwd foo, where foo is a local-only user). In this case, we fall intp yp_passwd() without the corresponding yp_password structure being filled in, which leads to an NULL pointer dereference. Also fixed the logic like I just did with chpass so that if the user is both in NIS and the local password database, the program makes a more sensible guess as to which one to use (if NIS is turned on in /etc/master.passwd, then use NIS, else default to local).
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud