Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > b2b31f8f12ce25fb0a2128354ea26724 > files > 11

cups-1.3.7-30.el5.src.rpm

diff -up cups-1.3.7/scheduler/ipp.c.CVE-2009-0949 cups-1.3.7/scheduler/ipp.c
--- cups-1.3.7/scheduler/ipp.c.CVE-2009-0949	2009-06-08 17:29:23.218414821 +0100
+++ cups-1.3.7/scheduler/ipp.c	2009-06-08 17:29:36.727539820 +0100
@@ -318,7 +318,8 @@ cupsdProcessIPPRequest(
       */
 
       attr = con->request->attrs;
-      if (attr && !strcmp(attr->name, "attributes-charset") &&
+      if (attr && attr->name &&
+          !strcmp(attr->name, "attributes-charset") &&
 	  (attr->value_tag & IPP_TAG_MASK) == IPP_TAG_CHARSET)
 	charset = attr;
       else
@@ -327,7 +328,8 @@ cupsdProcessIPPRequest(
       if (attr)
         attr = attr->next;
 
-      if (attr && !strcmp(attr->name, "attributes-natural-language") &&
+      if (attr && attr->name &&
+          !strcmp(attr->name, "attributes-natural-language") &&
 	  (attr->value_tag & IPP_TAG_MASK) == IPP_TAG_LANGUAGE)
 	language = attr;
       else