diff options
| author | Bijan <bijanebrahimi@riseup.net> | 2022-02-01 11:03:00 +0330 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2022-02-09 10:07:47 -0500 |
| commit | 16dca7cec5f47b7a6f83822a1e681652b7d2d60d (patch) | |
| tree | 68897d2549d820c14f977f95e8edf66a01b6e75f /zebra/kernel_socket.c | |
| parent | b564209367385688c7146b00dc5237dde6770660 (diff) | |
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>
Diffstat (limited to 'zebra/kernel_socket.c')
0 files changed, 0 insertions, 0 deletions
