]> git.puffer.fish Git - mirror/frr.git/commit
lib: Handle call to zlog_5424_cycle() without valid FD properly 17775/head
authorMartin Buck <mb-tmp-tvguho.pbz@gromit.dyndns.org>
Mon, 6 Jan 2025 14:35:30 +0000 (15:35 +0100)
committerMartin Buck <mb-tmp-tvguho.pbz@gromit.dyndns.org>
Wed, 8 Jan 2025 12:30:40 +0000 (13:30 +0100)
commit59ee9d2a796ea9ad4fc55ee5df69fd6b0218a887
treebec07918f5c5bc2ab89df55af995c8383a3e106f
parent9951da394abb71c6542f91031ac3a9fab04193bd
lib: Handle call to zlog_5424_cycle() without valid FD properly

In zlog_5424_cycle(), struct zlt_5424 *zlt only points to valid memory when
the passed file descriptor is >= 0 (and passing -1 seems to be a supported
use case). So we shouldn't try to compute the address of its zt member when
zlt is NULL.

Signed-off-by: Martin Buck <mb-tmp-tvguho.pbz@gromit.dyndns.org>
lib/zlog_5424.c