]> git.puffer.fish Git - mirror/frr.git/commit
pbrd: fix crash with match command 13881/head
authoranlan_cs <vic.lan@pica8.com>
Wed, 28 Jun 2023 04:31:52 +0000 (12:31 +0800)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Thu, 29 Jun 2023 19:22:46 +0000 (19:22 +0000)
commit03aac9be7b1b2e1b69d6f7f0a4c6fce435087211
treee2ac1633c3c0d8e63a65826683eca74cc0a772b5
parentf08b1c8d6881ec7aa48b74275a071522450a19f4
pbrd: fix crash with match command

Crash with empty `ip-protocol`:
```
anlan(config-pbr-map)# match ip-protocol
vtysh: error reading from pbrd: Resource temporarily unavailable (11)Warning: closing connection to pbrd because of an I/O error!
```

So, give warning for empty `ip-protocol`.

Signed-off-by: anlan_cs <vic.lan@pica8.com>
(cherry picked from commit 4e313ee450cb95cbc49cfe0b5bb9eb2e31549554)
pbrd/pbr_vty.c