- Fixed LSPP patch passing NULL to strcmp (bug #203784).
This commit is contained in:
parent
9ad376bf8d
commit
d90f3913c7
@ -1430,13 +1430,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;
|
||||
+ }
|
||||
+ }
|
||||
|
@ -6,7 +6,7 @@
|
||||
Summary: Common Unix Printing System
|
||||
Name: cups
|
||||
Version: 1.2.2
|
||||
Release: 14
|
||||
Release: 15
|
||||
License: GPL
|
||||
Group: System Environment/Daemons
|
||||
Source: ftp://ftp.easysw.com/pub/cups/%{version}/cups-%{version}-source.tar.bz2
|
||||
@ -420,6 +420,9 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%{cups_serverbin}/daemon/cups-lpd
|
||||
|
||||
%changelog
|
||||
* Thu Aug 24 2006 Tim Waugh <twaugh@redhat.com> 1:1.2.2-15
|
||||
- Fixed LSPP patch passing NULL to strcmp (bug #203784).
|
||||
|
||||
* Mon Aug 21 2006 Tim Waugh <twaugh@redhat.com> 1:1.2.2-14
|
||||
- Updated LSPP patch (bug #203376).
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user