khaledcollo / rfc5766-turn-server

Automatically exported from code.google.com/p/rfc5766-turn-server
0 stars 0 forks source link

Segmentesion fault in case of 'no-cli'. #105

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It becomes Segmentation fault when 'no-cli' is enabled.

diff -r -c turnserver-3.2.2.7.orig/src/apps/relay/turncli.c 
turnserver-3.2.2.7/src/apps/relay/turncli.c
*** turnserver-3.2.2.7.orig/src/apps/relay/turncli.c    2014-02-14 
16:51:45.000000000 +0900
--- turnserver-3.2.2.7/src/apps/relay/turncli.c 2014-02-18 16:18:04.000000000 
+0900
***************
*** 1217,1222 ****
--- 1217,1226 ----
  int send_turn_session_info(struct turn_session_info* tsi)
  {
    int ret = -1;
+
+   if (!use_cli) {
+       return ret;
+   }

    if(tsi) {
        struct evbuffer *output = bufferevent_get_output(cliserver.out_buf);

Original issue reported on code.google.com by mutsutos...@mixi.co.jp on 18 Feb 2014 at 7:21

GoogleCodeExporter commented 9 years ago
Thanks for reporting ! It will be fixed in 3.2.2.8.

Original comment by mom040...@gmail.com on 18 Feb 2014 at 7:40

GoogleCodeExporter commented 9 years ago

Original comment by mom040...@gmail.com on 22 Feb 2014 at 8:32