From: Juha-Pekka Heikkila Date: Fri, 7 Feb 2014 12:44:03 +0000 (+0200) Subject: glx: Add missing null check in __glX_send_client_info() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d530745169282469b2dd8221629ef948ff31bcf3;p=mesa.git glx: Add missing null check in __glX_send_client_info() Signed-off-by: Juha-Pekka Heikkila Reviewed-by: Brian Paul --- diff --git a/src/glx/clientinfo.c b/src/glx/clientinfo.c index e90fd796297..8f3fdeba4aa 100644 --- a/src/glx/clientinfo.c +++ b/src/glx/clientinfo.c @@ -113,6 +113,10 @@ __glX_send_client_info(struct glx_display *glx_dpy) } gl_extension_string = __glXGetClientGLExtensionString(); + if (gl_extension_string == NULL) { + return; + } + gl_extension_length = strlen(gl_extension_string) + 1; c = XGetXCBConnection(glx_dpy->dpy);