summaryrefslogtreecommitdiffstats
path: root/pimd/pim_zlookup.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2020-11-11 20:14:37 +0100
committerDonald Sharp <sharpd@nvidia.com>2020-11-15 21:04:52 +0100
commit7cfdb48554329b1fb7d0469d0ebf2bfa816c5eea (patch)
tree50d3a706d34cd135865356c0d95f04511497510b /pimd/pim_zlookup.c
parentbgpd, lib, sharpd: Add enum for zclient_send_message return (diff)
downloadfrr-7cfdb48554329b1fb7d0469d0ebf2bfa816c5eea.tar.xz
frr-7cfdb48554329b1fb7d0469d0ebf2bfa816c5eea.zip
*: Convert all usage of zclient_send_message to new enum
The `enum zclient_send_status` enum needs to be extended throughout the code base to use the new states and to fix up places where we tested against the return value being non zero. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'pimd/pim_zlookup.c')
-rw-r--r--pimd/pim_zlookup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pimd/pim_zlookup.c b/pimd/pim_zlookup.c
index dc4c621e9..05c9af873 100644
--- a/pimd/pim_zlookup.c
+++ b/pimd/pim_zlookup.c
@@ -61,7 +61,7 @@ static int zclient_lookup_connect(struct thread *t)
zlookup->fail = 0; /* reset counter on connection */
}
- if (zclient_send_hello(zlookup) < 0) {
+ if (zclient_send_hello(zlookup) == ZCLIENT_SEND_FAILURE) {
if (close(zlookup->sock)) {
zlog_warn("%s: closing fd=%d: errno=%d %s", __func__,
zlookup->sock, errno, safe_strerror(errno));