mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-29 21:23:06 +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 */
|
/* read response and send it back */
|
||||||
ret = relay_response_back();
|
ret = relay_response_back();
|
||||||
|
|
||||||
/* on error, schedule another read */
|
/* re-arm read */
|
||||||
if (ret == -1)
|
thread_add_read(zclient->master, lm_zclient_read, NULL,
|
||||||
if (!zclient->t_read)
|
zclient->sock, &zclient->t_read);
|
||||||
thread_add_read(zclient->master, lm_zclient_read, NULL,
|
|
||||||
zclient->sock, &zclient->t_read);
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user