glx: add extra null check in getFBConfigs
authorJuha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Wed, 2 Apr 2014 13:13:56 +0000 (16:13 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Wed, 2 Apr 2014 16:54:37 +0000 (19:54 +0300)
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/glx/glxext.c

index 4a195bd40ba272da5125d22a037e52826b434e37..0838cd19251ff313acbca08103b1d5735492066d 100644 (file)
@@ -677,6 +677,10 @@ static GLboolean
    psc->serverGLXexts =
       __glXQueryServerString(dpy, priv->majorOpcode, screen, GLX_EXTENSIONS);
 
+   if (psc->serverGLXexts == NULL) {
+      return GL_FALSE;
+   }
+
    LockDisplay(dpy);
 
    psc->configs = NULL;