diff options
author | Klement Sekera <ksekera@cisco.com> | 2021-11-16 12:22:25 +0100 |
---|---|---|
committer | Andrew Yourtchenko <ayourtch@gmail.com> | 2021-11-24 09:57:51 +0000 |
commit | 89a4978afd6ba9d5e7970a86e7beb95ef3b908ae (patch) | |
tree | b33a4cb5d8a54668a6819f60eea329790063f36e /src | |
parent | 8b7e8ae97cf111d30db5d9366d2904518976cc7d (diff) |
misc: vppctl - fix coverity warning
Check the return value and log failure in case send() fails.
Type: fix
Fixes: 31f192434660
Signed-off-by: Klement Sekera <ksekera@cisco.com>
Change-Id: I1809598ff4816f67c28a88264b6524b10d7ff6ce
Diffstat (limited to 'src')
-rw-r--r-- | src/vpp/app/vppctl.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/vpp/app/vppctl.c b/src/vpp/app/vppctl.c index 98158ddb5b6..8fe493d3f2a 100644 --- a/src/vpp/app/vppctl.c +++ b/src/vpp/app/vppctl.c @@ -58,7 +58,10 @@ send_ttype (int sock_fd, int is_interactive) "%c%s" "%c%c", IAC, SB, TELOPT_TTYPE, 0, term, IAC, SE); - send (sock_fd, buf, len, 0); + if (send (sock_fd, buf, len, 0) < 0) + { + perror ("send_ttype"); + } } static void |