Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 630516
Collapse All | Expand All

(-)a/libsoup/soup-websocket-connection.c (-1 / +2 lines)
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

Return to bug 630516