]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
authpf: do not sprintf to a null pointer
authorEd Maste <emaste@FreeBSD.org>
Wed, 3 May 2023 13:26:42 +0000 (09:26 -0400)
committerEd Maste <emaste@FreeBSD.org>
Wed, 3 May 2023 14:03:27 +0000 (10:03 -0400)
commit81f964e2ffb7cd5d30df0a5c3877900cca4fdd07
treed068bb1722e90cea4c8e5a5d0d01a738398a3c56
parentd411c1d696ef35d60f8c3564e5eef7aeafa2fece
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
contrib/pf/authpf/authpf.c