summaryrefslogtreecommitdiff
path: root/lib/bfd.c
diff options
context:
space:
mode:
authorMark Stapp <mjs@voltanet.io>2020-11-18 08:30:47 -0500
committerGitHub <noreply@github.com>2020-11-18 08:30:47 -0500
commit926bc58f782588c8f3adc14ad3137027ab6e7bef (patch)
tree00978760528c67d9faf867544fc787be9b0449b3 /lib/bfd.c
parent4287336cd7fed5ad1bd65f0d57cac513b1754be2 (diff)
parent7cfdb48554329b1fb7d0469d0ebf2bfa816c5eea (diff)
Merge pull request #7478 from donaldsharp/buffer
Buffer
Diffstat (limited to 'lib/bfd.c')
-rw-r--r--lib/bfd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/bfd.c b/lib/bfd.c
index 1a37b348f8..cdf7008601 100644
--- a/lib/bfd.c
+++ b/lib/bfd.c
@@ -405,7 +405,7 @@ void bfd_client_sendmsg(struct zclient *zclient, int command,
vrf_id_t vrf_id)
{
struct stream *s;
- int ret;
+ enum zclient_send_status ret;
/* Check socket. */
if (!zclient || zclient->sock < 0) {
@@ -426,7 +426,7 @@ void bfd_client_sendmsg(struct zclient *zclient, int command,
ret = zclient_send_message(zclient);
- if (ret < 0) {
+ if (ret == ZCLIENT_SEND_FAILURE) {
if (bfd_debug)
zlog_debug(
"bfd_client_sendmsg %ld: zclient_send_message() failed",
@@ -542,7 +542,7 @@ int zclient_bfd_command(struct zclient *zc, struct bfd_session_arg *args)
stream_putw_at(s, 0, stream_get_endp(s));
/* Send message to zebra. */
- if (zclient_send_message(zc) == -1) {
+ if (zclient_send_message(zc) == ZCLIENT_SEND_FAILURE) {
if (bfd_debug)
zlog_debug("%s: zclient_send_message failed", __func__);
return -1;