]> git.puffer.fish Git - matthieu/frr.git/commit
pbrd: fix crash with match command
authoranlan_cs <vic.lan@pica8.com>
Wed, 28 Jun 2023 04:31:52 +0000 (12:31 +0800)
committeranlan_cs <vic.lan@pica8.com>
Wed, 28 Jun 2023 13:46:47 +0000 (21:46 +0800)
commit4e313ee450cb95cbc49cfe0b5bb9eb2e31549554
tree94b6959ad9a6db6910fb618543f242cd017d9ba6
parent4199f032e594984e08dddf079e4b4e8755f20c85
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>
pbrd/pbr_vty.c