mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-28 05:12:04 +00:00
Merge pull request #4095 from pacovn/201904_master__lm_aliasing_fixes
zebra: label manager race condition fix
This commit is contained in:
commit
977e9f3791
@ -156,11 +156,9 @@ static int lm_zclient_read(struct thread *t)
|
||||
/* read response and send it back */
|
||||
ret = relay_response_back();
|
||||
|
||||
/* on error, schedule another read */
|
||||
if (ret == -1)
|
||||
if (!zclient->t_read)
|
||||
thread_add_read(zclient->master, lm_zclient_read, NULL,
|
||||
zclient->sock, &zclient->t_read);
|
||||
/* re-arm read */
|
||||
thread_add_read(zclient->master, lm_zclient_read, NULL,
|
||||
zclient->sock, &zclient->t_read);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user