aboutsummaryrefslogtreecommitdiff
path: root/src/lib/sockio-c.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/sockio-c.c')
-rw-r--r--src/lib/sockio-c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/sockio-c.c b/src/lib/sockio-c.c
index a29be625..a7efa4e2 100644
--- a/src/lib/sockio-c.c
+++ b/src/lib/sockio-c.c
@@ -663,7 +663,7 @@ send_string_len(openaxiom_sio *sock, const char *str,int len)
val = swrite(sock, (const Byte*) buf, len+1, "send_string_len");
}
if (val == -1) {
- return -1;
+ return val;
}
return 0;
}