]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Set the pw_class field to NULL when scanning the non-master passwd file.
authorian <ian@FreeBSD.org>
Sun, 22 Jul 2018 22:34:20 +0000 (22:34 +0000)
committerian <ian@FreeBSD.org>
Sun, 22 Jul 2018 22:34:20 +0000 (22:34 +0000)
commit058fe47ea3935b6dd6e30945a87aef9829ec61a1
tree1343f1ae204ecd07b089a79c0af96fb3655e381b
parent0ee3908d56a9c547f3ed2ae22b37c823bb897f9a
Set the pw_class field to NULL when scanning the non-master passwd file.
This avoids a null pointer deref in pw_dup(), which assumes that all
pointers are either NULL or valid.
lib/libc/gen/pw_scan.c