git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10952 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris
2008-12-26 18:11:31 +00:00
parent b899c073e0
commit db6f99ba33
2 changed files with 2 additions and 5 deletions

View File

@@ -867,7 +867,7 @@ ESL_DECLARE(esl_status_t) esl_send(esl_handle_t *handle, const char *cmd)
}
if (!(*e == '\n' && *(e-1) == '\n')) {
if (send(handle->sock, "\n\n", 2, 0)) {
if (send(handle->sock, "\n\n", 2, 0) != 2) {
strerror_r(handle->errnum, handle->err, sizeof(handle->err));
return ESL_FAIL;
}