]> git.proxmox.com Git - mirror_frr.git/commitdiff
Merge pull request #4095 from pacovn/201904_master__lm_aliasing_fixes
authorDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 9 Apr 2019 12:38:02 +0000 (08:38 -0400)
committerGitHub <noreply@github.com>
Tue, 9 Apr 2019 12:38:02 +0000 (08:38 -0400)
zebra: label manager race condition fix

zebra/label_manager.c

index 1b17845e41ec14bd16893a367399b05fd4f80e8d..16d45836e00d1468344fa670004d2491b9b34c0b 100644 (file)
@@ -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;
 }