diff --git a/dist/antd-publishers-0.1.0a.tar.gz b/dist/antd-publishers-0.1.0a.tar.gz index 28e9eb2..3ec2397 100644 Binary files a/dist/antd-publishers-0.1.0a.tar.gz and b/dist/antd-publishers-0.1.0a.tar.gz differ diff --git a/vterm/vterm b/vterm/vterm index 560fca2..52a1a57 100755 Binary files a/vterm/vterm and b/vterm/vterm differ diff --git a/vterm/vterm.c b/vterm/vterm.c index ae5f29b..cf6d144 100644 --- a/vterm/vterm.c +++ b/vterm/vterm.c @@ -357,6 +357,13 @@ int main(int argc, char** argv) if(msg.data) free(msg.data); } + else + { + M_ERROR(MODULE_NAME, "Channel is not created: %s. Tunnel service responds with msg of type %d", MODULE_NAME, msg.header.type); + if(msg.data) + free(msg.data); + running = 0; + } // now read data while(running) diff --git a/wfifo/wfifo b/wfifo/wfifo index 42c4b30..0f3a8a8 100755 Binary files a/wfifo/wfifo and b/wfifo/wfifo differ diff --git a/wfifo/wfifo.c b/wfifo/wfifo.c index 6f79914..1972054 100644 --- a/wfifo/wfifo.c +++ b/wfifo/wfifo.c @@ -121,6 +121,14 @@ int main(int argc, char** argv) if(msg.data) free(msg.data); } + else + { + M_ERROR(MODULE_NAME, "Channel is not created: %s. Tunnel service responds with msg of type %d", argv[2], msg.header.type); + if(msg.data) + free(msg.data); + running = 0; + } + // now read data while(running) @@ -187,7 +195,7 @@ int main(int argc, char** argv) msg.header.type = CHANNEL_ERROR; msg.header.size = strlen(buff); tmp = msg.data; - msg.data = buff; + msg.data = (uint8_t*)buff; if(msg_write(fd, &msg) == -1) { M_ERROR(MODULE_NAME, "Unable to write message to hotline"); @@ -221,7 +229,7 @@ int main(int argc, char** argv) { msg.header.type = CHANNEL_DATA; msg.header.size = status; - msg.data = buff; + msg.data = (uint8_t*)buff; fargv[0] = (void*) &msg; fargv[1] = (void*) &fd; bst_for_each(clients, send_data, fargv, 2);