commit | 8e433c2083db8664c41499ee146448ea7ebe7dbf | [log] [tgz] |
---|---|---|
author | beck@openbsd.org <beck@openbsd.org> | Wed Jul 25 13:10:56 2018 +0000 |
committer | Damien Miller <djm@mindrot.org> | Thu Jul 26 13:54:30 2018 +1000 |
tree | 7d3bc4cb06117e9a50edf806877b8fd98f205445 | |
parent | e2127abb105ae72b6fda64fff150e6b24b3f1317 [diff] |
upstream: Use the caller provided (copied) pwent struct in load_public_identity_files instead of calling getpwuid() again and discarding the argument. This prevents a client crash where tilde_expand_filename calls getpwuid() again before the pwent pointer is used. Issue noticed and reported by Pierre-Olivier Martel <pom@apple.com> ok djm@ deraadt@ OpenBSD-Commit-ID: a067d74b5b098763736c94cc1368de8ea3f0b157