View | Details | Raw Unified | Return to bug 7065
Collapse All | Expand All

(-)xmms/libxmms/xmmsctrl.c (-1 / +1 lines)
Lines 61-67 static gpointer remote_read_packet(gint Link Here
61
		if (pkt_hdr->data_length)
61
		if (pkt_hdr->data_length)
62
		{
62
		{
63
			data = g_malloc0(pkt_hdr->data_length);
63
			data = g_malloc0(pkt_hdr->data_length);
64
			if (read_all(fd, data, pkt_hdr->data_length) < 0)
64
			if (read_all(fd, data, pkt_hdr->data_length) != pkt_hdr->data_length)
65
			{
65
			{
66
				g_free(data);
66
				g_free(data);
67
				data = NULL;
67
				data = NULL;

Return to bug 7065