summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
8b7e8ae)
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
"%c%s"
"%c%c",
IAC, SB, TELOPT_TTYPE, 0, term, IAC, SE);
"%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");
+ }