* src/xterm.c (xm_read_drag_receiver_info): Just return if the
protocol is invalid. Reported by Jashank Jeremy
<jashank@rulingia.com.au>.
{
data = (uint8_t *) tmp_data;
+ if (data[1] > XM_DRAG_PROTOCOL_VERSION)
+ return 1;
+
rec->byteorder = data[0];
rec->protocol = data[1];
rec->protocol_style = data[2];
rec->byteorder = XM_BYTE_ORDER_CUR_FIRST;
}
- if (data[1] > XM_DRAG_PROTOCOL_VERSION)
- rc = 0;
-
if (tmp_data)
XFree (tmp_data);