glx: Check that swap_buffers_reply is non-NULL before using it
authorStéphane Marchesin <marcheu@chromium.org>
Mon, 28 Jan 2013 23:04:00 +0000 (15:04 -0800)
committerStéphane Marchesin <marcheu@chromium.org>
Tue, 29 Jan 2013 19:15:22 +0000 (11:15 -0800)
commit67e7263e4567f36e59009a1ca076a2854a6c1b0e
tree5d267ce47a45c72ad9f4bcf18fbdeeeb18680043
parent70c5297439cc5401045ec842a6abeda118296f69
glx: Check that swap_buffers_reply is non-NULL before using it

Check that the return value from xcb_dri2_swap_buffers_reply is
non-NULL before accessing the struct members.

Note: This is a candidate for the 9.0 branch.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/glx/dri2_glx.c