]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Set the pw_class field to NULL when scanning the non-master passwd file.
authorIan Lepore <ian@FreeBSD.org>
Sun, 22 Jul 2018 22:34:20 +0000 (22:34 +0000)
committerIan Lepore <ian@FreeBSD.org>
Sun, 22 Jul 2018 22:34:20 +0000 (22:34 +0000)
commitcbc397fd102fb399489ec0fd2f50e388f47fbcf3
tree1343f1ae204ecd07b089a79c0af96fb3655e381b
parent75b9becc2cc729501ca68cf96db7e6e557d2883e
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