Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(from parent 1:
8b7e8ae
)
misc: vppctl - fix coverity warning
27/34527/2
author
Klement Sekera
<ksekera@cisco.com>
Tue, 16 Nov 2021 11:22:25 +0000
(12:22 +0100)
committer
Andrew Yourtchenko
<ayourtch@gmail.com>
Wed, 24 Nov 2021 09:57:51 +0000
(09:57 +0000)
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
src/vpp/app/vppctl.c
patch
|
blob
|
history
diff --git
a/src/vpp/app/vppctl.c
b/src/vpp/app/vppctl.c
index
98158dd
..
8fe493d
100644
(file)
--- 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