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