If a client sends a pong message out of the blue, we deref ping_timer
which is NULL and then crash. Unsolicited pong requests indicate that
something is wrong on the client, but the compositor should survide that.
struct wl_pointer *pointer;
int was_unresponsive;
+ if (shsurf->ping_timer == NULL)
+ /* Just ignore unsolicited pong. */
+ return;
+
if (shsurf->ping_timer->serial == serial) {
was_unresponsive = shsurf->unresponsive;
shsurf->unresponsive = 0;