From: Juha-Pekka Heikkila Date: Wed, 2 Apr 2014 13:13:56 +0000 (+0300) Subject: glx: add extra null check in getFBConfigs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1056c50d574eebaf5a1769f52d95b022aaf27c80;p=mesa.git glx: add extra null check in getFBConfigs Signed-off-by: Juha-Pekka Heikkila Reviewed-by: Brian Paul --- diff --git a/src/glx/glxext.c b/src/glx/glxext.c index 4a195bd40ba..0838cd19251 100644 --- a/src/glx/glxext.c +++ b/src/glx/glxext.c @@ -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;