]> git.puffer.fish Git - mirror/frr.git/commit
zebra: check `dirfd()` result
authorDavid Lamparter <equinox@opensourcerouting.org>
Wed, 16 Oct 2024 10:54:45 +0000 (12:54 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Wed, 16 Oct 2024 11:30:25 +0000 (13:30 +0200)
commite6cb1a90f2fbeab421c79d2a740225413b3238ac
treeef9a05bbceb77d6cabf3a08a2b81df847393db8c
parent67b0a457ed32fd452aa4622c20531b9721cc3328
zebra: check `dirfd()` result

`dirfd()` can theoretically return an error.  Call it once and check the
result.

clang-SA: technically correctâ„¢.  Ain't that the best kind of correct?

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
zebra/zebra_netns_notify.c