[Mesa-dev] [PATCH 7/9] glx: Add missing null check in __glX_send_client_info()

Juha-Pekka Heikkila juhapekka.heikkila at gmail.com
Fri Feb 7 04:44:03 PST 2014


Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila at gmail.com>
---
 src/glx/clientinfo.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/glx/clientinfo.c b/src/glx/clientinfo.c
index e90fd79..8f3fdeb 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);
-- 
1.8.1.2



More information about the mesa-dev mailing list