vulkan/wsi/x11: add null pointer check for the has_dri3_v1_2 test
authorBrian Paul <brianp@vmware.com>
Fri, 18 Mar 2022 04:10:39 +0000 (22:10 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 23 Mar 2022 03:19:40 +0000 (03:19 +0000)
commit03d342e4b2988879f6981f5df11ff6540e4a5b85
tree25fea601276a9eafb4346079dad22aa8316f5b24
parent948ad5ac230c5434350fc988c147e28e1b9506ab
vulkan/wsi/x11: add null pointer check for the has_dri3_v1_2 test

This fixes a crash (ver_reply is NULL) when DISPLAY points to
a remote display.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6040
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15469>
src/vulkan/wsi/wsi_common_x11.c