Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 255991 | Differences between
and this patch

Collapse All | Expand All

(-)libpurple/protocols/oscar/flap_connection.c-orig (+5 lines)
Lines 311-316 flap_connection_new(OscarData *od, int t Link Here
311
{
311
{
312
	FlapConnection *conn;
312
	FlapConnection *conn;
313
313
314
	static const guint FlapLoginSeqs[] = { 5695, 23595, 23620, 23049, 0x2886, 0x2493, 23620, 23049, 2853, 17372, 1255, 1796, 1657, 13606, 1930, 23918, 31234, 30120, 0x1BEA, 0x5342, 0x30CC, 0x2294, 0x5697, 0x25FA, 0x3303, 0x078A, 0x0FC5, 0x25D6, 0x26EE, 0x7570, 0x7F33, 0x4E94, 0x07C9, 0x7339, 0x42A8 };
315
314
	conn = g_new0(FlapConnection, 1);
316
	conn = g_new0(FlapConnection, 1);
315
	conn->od = od;
317
	conn->od = od;
316
	conn->buffer_outgoing = purple_circ_buffer_new(0);
318
	conn->buffer_outgoing = purple_circ_buffer_new(0);
Lines 318-323 flap_connection_new(OscarData *od, int t Link Here
318
	conn->subtype = -1;
320
	conn->subtype = -1;
319
	conn->type = type;
321
	conn->type = type;
320
322
323
	srand (time (NULL));
324
	conn->seqnum_out = FlapLoginSeqs[g_random_int_range(0, (sizeof  FlapLoginSeqs) / (sizeof  FlapLoginSeqs[0]))] - 1;
325
321
	od->oscar_connections = g_slist_prepend(od->oscar_connections, conn);
326
	od->oscar_connections = g_slist_prepend(od->oscar_connections, conn);
322
327
323
	return conn;
328
	return conn;

Return to bug 255991