]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-11785 [mod_event_socket] fix dead assignment
authorChris Rienzo <chris@signalwire.com>
Thu, 2 May 2019 23:58:36 +0000 (23:58 +0000)
committerAndrey Volk <andywolk@gmail.com>
Wed, 17 Jul 2019 17:50:36 +0000 (21:50 +0400)
src/mod/event_handlers/mod_event_socket/mod_event_socket.c

index 7a347f266ffac543d7b738cac38b612b73573289..a9234222cf93959d8be96a309c4d2286e4c8d22c 100644 (file)
@@ -1275,7 +1275,6 @@ static switch_status_t read_packet(listener_t *listener, switch_event_t **event,
                        if (crcount == 2) {
                                char *next;
                                char *cur = mbuf;
-                               bytes = 0;
                                while (cur) {
                                        if ((next = strchr(cur, '\r')) || (next = strchr(cur, '\n'))) {
                                                while (*next == '\r' || *next == '\n') {
@@ -1841,7 +1840,6 @@ static switch_status_t parse_command(listener_t *listener, switch_event_t **even
                                        switch_core_hash_init(&listener->allowed_event_hash);
 
                                        edup = strdup(allowed_events);
-                                       cur = edup;
 
                                        switch_assert(edup);
                                        
@@ -1898,7 +1896,6 @@ static switch_status_t parse_command(listener_t *listener, switch_event_t **even
                                        switch_core_hash_init(&listener->allowed_api_hash);
 
                                        edup = strdup(allowed_api);
-                                       cur = edup;
 
                                        if (strchr(edup, ' ')) {
                                                delim = ' ';
@@ -2063,8 +2060,6 @@ static switch_status_t parse_command(listener_t *listener, switch_event_t **even
                                                if (fmt) {
                                                        switch_snprintf(reply, reply_len, "-ERR invalid uuid");
                                                        goto done;
-                                               } else {
-                                                       fmt = uuid;
                                                }
                                        }