getty: Avoid NULL deref if stdin is not a tty.
authorDag-Erling Smørgrav <des@FreeBSD.org>
Fri, 4 Nov 2022 14:43:06 +0000 (15:43 +0100)
committerDag-Erling Smørgrav <des@FreeBSD.org>
Fri, 4 Nov 2022 14:54:01 +0000 (15:54 +0100)
commiteb4d86d529e2523a19fd7454976923319954a49d
tree10a9a724df9917bb12212e4dbcad816d57d02bf3
parentf285f41498ebe0bfc1dbe47d67af12ec2d131521
getty: Avoid NULL deref if stdin is not a tty.

Sponsored by: Klara, Inc.
Obtained from: Apple OSS Distributions
Differential Revision: https://reviews.freebsd.org/D37265
libexec/getty/main.c