Lines 395-403
Link Here
|
395 |
* probably a client somewhere that's not expecting it. |
395 |
* probably a client somewhere that's not expecting it. |
396 |
*/ |
396 |
*/ |
397 |
if (self->pv->connection_type == SOUP_WEBSOCKET_CONNECTION_CLIENT) { |
397 |
if (self->pv->connection_type == SOUP_WEBSOCKET_CONNECTION_CLIENT) { |
|
|
398 |
guint32 rnd = g_random_int (); |
398 |
outer[1] |= 0x80; |
399 |
outer[1] |= 0x80; |
399 |
mask = outer + bytes->len; |
400 |
mask = outer + bytes->len; |
400 |
* ((guint32 *)mask) = g_random_int (); |
401 |
memcpy(mask, &rnd, sizeof(rnd)); |
401 |
bytes->len += 4; |
402 |
bytes->len += 4; |
402 |
} |
403 |
} |
403 |
|
404 |
|