cw_ktv_set_word and cw_ktv_setdword added

FossilOrigin-Name: db2628d0a97473f499170b32d2ad13ef2158334ce009ff8d5bd9f9331d653fc4
This commit is contained in:
7u83@mail.ru
2018-04-04 17:23:40 +00:00
parent b21845d3c0
commit aa24582d05
8 changed files with 26 additions and 6 deletions

View File

@ -473,11 +473,11 @@ static int process_elements(struct conn *conn, uint8_t * rawmsg, int len,
if (result_code > 0) {
/* the end method gave us an result code>0, so
send an error message */
printf("Here we are, error response %i %s\n", result_code, cw_strerror(result_code));
exit(0);
cw_send_error_response(conn, rawmsg, result_code);
} else if (result_code == 0) {
/*cw_ktv_add_word(conn->local_cfg,"result_code")*/
/* All is ok, send regular response message */
cw_send_response(conn, rawmsg, len);
} else {