broadway: Don't bother memdup-ing

If we're going to run off the end due to an invalid message,
we're going to run off the end. We'll protect this by doing
proper bounds checking in the future, but the malloc gives
us nothing for now.
This commit is contained in:
Jasper St. Pierre 2013-09-26 14:09:35 -04:00
parent 0d0ff40d2f
commit d7417580b7

View File

@ -568,9 +568,7 @@ parse_input (BroadwayInput *input)
} }
else else
{ {
char *terminated = g_memdup ((char *)data, payload_len); parse_input_message (input, data);
parse_input_message (input, terminated);
g_free (terminated);
} }
break; break;
case BROADWAY_WS_CNX_PING: case BROADWAY_WS_CNX_PING: