commit | a1deeaa4e8d7cf571d402d4e8800768689643ca3 | [log] [tgz] |
---|---|---|
author | Srinivas Dasari <dasaris@codeaurora.org> | Mon Jun 18 22:54:04 2018 +0530 |
committer | Jouni Malinen <jouni@codeaurora.org> | Tue Jun 19 13:30:07 2018 +0300 |
tree | f72ce16dab6d13271e340dfca3682136131f836b | |
parent | 4cf699f136a451edb405c7f7ea7daf1da1636d48 [diff] |
Validate the data returned by getgrnam() and getpwnam() getgrnam() returns NULL if the group is not present and getpwnam() returns NULL if the passwd entry is not present for a given user. Add NULL checks before accessing the data returned by these. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>