]> git.puffer.fish Git - mirror/frr.git/commit
zebra: Keep the interface flags safe on multiple ioctl calls 10547/head
authorBijan <bijanebrahimi@riseup.net>
Tue, 1 Feb 2022 07:33:00 +0000 (11:03 +0330)
committerDonald Sharp <sharpd@nvidia.com>
Wed, 9 Feb 2022 15:07:47 +0000 (10:07 -0500)
commit16dca7cec5f47b7a6f83822a1e681652b7d2d60d
tree68897d2549d820c14f977f95e8edf66a01b6e75f
parentb564209367385688c7146b00dc5237dde6770660
zebra: Keep the interface flags safe on multiple ioctl calls

Trying to call multiple ioctl calls on ifreq will result in
overwriting ifreq with garbage data. On if_get_flags call,
try to keep the flags field safe from another possible ioctl
call before applying the flags field.

Modified code as per Code Review, done by Donald Sharp.

Signed-off-by: Bijan <bijanebrahimi@riseup.net>
zebra/ioctl.c