Skip to content
Browse files

Fixed:change return value.

  • Loading branch information...
1 parent 90e820a commit 190586e908aaa7f042feea7bde08904b211cd0a7 @seinocluster2 seinocluster2 committed Jul 26, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/main.c
View
5 src/main.c
@@ -613,9 +613,10 @@ static int do_command(cmd_request_t cmd)
strcpy(to.addr, cl.site);
s = booth_transport[TCP].open(&to);
- if (s < 0)
+ if (s < 0) {
+ rv = -1;
goto out_close;
-
+ }
rv = booth_transport[TCP].send(s, buf, buflen);
if (rv < 0) {
booth_transport[TCP].close(s);

0 comments on commit 190586e

Please sign in to comment.
Something went wrong with that request. Please try again.