glx: Add missing null check in __glX_send_client_info()
authorJuha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Fri, 7 Feb 2014 12:44:03 +0000 (14:44 +0200)
committerBrian Paul <brianp@vmware.com>
Fri, 7 Feb 2014 15:14:05 +0000 (08:14 -0700)
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/glx/clientinfo.c

index e90fd7962979985d5950fb240aa0f186ff3a83de..8f3fdeba4aa1c39ff8f857da2bb7e29b9c0de6a8 100644 (file)
@@ -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);