summaryrefslogtreecommitdiff
path: root/main/message.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/message.c')
-rw-r--r--main/message.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/message.c b/main/message.c
index cf4ee2b70..ff88c2f6d 100644
--- a/main/message.c
+++ b/main/message.c
@@ -1260,7 +1260,7 @@ static int action_messagesend(struct mansession *s, const struct message *m)
if (ast_strlen_zero(to)) {
astman_send_error(s, m, "No 'To' address specified.");
- return -1;
+ return 0;
}
if (!ast_strlen_zero(base64body)) {
@@ -1282,7 +1282,7 @@ static int action_messagesend(struct mansession *s, const struct message *m)
if (!(msg = ast_msg_alloc())) {
ast_rwlock_unlock(&msg_techs_lock);
astman_send_error(s, m, "Internal failure\n");
- return -1;
+ return 0;
}
data = astman_get_variables_order(m, ORDER_NATURAL);
@@ -1304,7 +1304,7 @@ static int action_messagesend(struct mansession *s, const struct message *m)
} else {
astman_send_ack(s, m, "Message successfully sent");
}
- return res;
+ return 0;
}
int ast_msg_send(struct ast_msg *msg, const char *to, const char *from)