On Mon, 2006-08-21 at 12:22 -0400, Matt Anderson wrote: > Attached is an updated cups-lspp.patch that I've sent to Redhat (bug > 203376).
Looks like it needs this small fix. Tim. */
--- cups-1.2.2/scheduler/ipp.c 2006-08-21 06:57:47.000000000 -0400
+++ cups-1.2.2/scheduler/ipp.c 2006-08-21 06:57:47.000000000 -0400
@@ -1656,13 +1656,13 @@
userfooter = strdup(attr->values[1].string.text);
if ((strcmp(userheader, Classification) == 0)
- && (strcmp(userfooter, Classification) == 0))
+ && userfooter &&(strcmp(userfooter, Classification) == 0))
{
/*
* Since both values are Classification, the user is not trying to Override
*/
free(userheader);
- free(userfooter);
+ if (userfooter) free(userfooter);
userheader = userfooter = NULL;
}
}
signature.asc
Description: This is a digitally signed message part
-- redhat-lspp mailing list [email protected] https://www.redhat.com/mailman/listinfo/redhat-lspp
