Commit d7417580 authored by Jasper St. Pierre's avatar Jasper St. Pierre

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.
parent 0d0ff40d
......@@ -568,9 +568,7 @@ parse_input (BroadwayInput *input)
}
else
{
char *terminated = g_memdup ((char *)data, payload_len);
parse_input_message (input, terminated);
g_free (terminated);
parse_input_message (input, data);
}
break;
case BROADWAY_WS_CNX_PING:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment