File cups-1.3-CVE_2009_0949.patch of Package cups
Index: scheduler/ipp.c
===================================================================
--- scheduler/ipp.c (revision 8408)
+++ scheduler/ipp.c (revision 8409)
@@ -321,7 +321,8 @@
*/
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
@@ -330,7 +331,8 @@
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