aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vpp/app/vppctl.c5
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