HomeFreeBSD

authpf: do not sprintf to a null pointer

Description

authpf: do not sprintf to a null pointer

The fgetln loop will terminate with buf = NULL at EOF.

Reported by: GCC
Reviewed by: kp
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D39947

(cherry picked from commit 81f964e2ffb7cd5d30df0a5c3877900cca4fdd07)

Details

Provenance
emasteAuthored on May 3 2023, 1:26 PM
Reviewer
kp
Differential Revision
D39947: authpf: do not sprintf to a null pointer
Parents
rG8ba938472706: vfs: Rename vfs_emptydir() to vn_dir_check_empty()
Branches
Unknown
Tags
Unknown