]> git.puffer.fish Git - matthieu/frr.git/commit
lib, zebra: handle failure in get chunk
authorEmanuele Di Pascale <emanuele@voltanet.io>
Thu, 27 Jun 2019 08:59:22 +0000 (10:59 +0200)
committerEmanuele Di Pascale <emanuele@voltanet.io>
Wed, 10 Jul 2019 13:20:27 +0000 (15:20 +0200)
commitf004f7c3cea1b0e68a6f150e52f387bf8509df5d
tree2528c14e79cb7a01b88449c557a147558e339daf
parent0e3b6a926a98a028fa9ed8a8a1d00b429f547c03
lib, zebra: handle failure in get chunk

when requesting a specific label chunk (e.g. for the SRGB),
it might happen that we cannot get what we want. In this
event, we must be prepared to receive a response with no
label chunk. Without this fix, if the remote label manager
was not able to alloate the chunk we requested, we would
hang indefinitely trying to read data from the stream which
was not there.

Signed-off-by: Emanuele Di Pascale <emanuele@voltanet.io>
lib/zclient.c
zebra/zapi_msg.c