From d530745169282469b2dd8221629ef948ff31bcf3 Mon Sep 17 00:00:00 2001 From: Juha-Pekka Heikkila Date: Fri, 7 Feb 2014 14:44:03 +0200 Subject: [PATCH] glx: Add missing null check in __glX_send_client_info() Signed-off-by: Juha-Pekka Heikkila Reviewed-by: Brian Paul --- src/glx/clientinfo.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.30.2