diff --git a/cups-CVE-2007-4045.patch b/cups-CVE-2007-4045.patch index 9d65193..55d1300 100644 --- a/cups-CVE-2007-4045.patch +++ b/cups-CVE-2007-4045.patch @@ -16,8 +16,8 @@ diff -up cups-1.3.4/scheduler/client.c.CVE-2007-4045 cups-1.3.4/scheduler/client + c; + c = (cupsd_client_t *)cupsArrayNext(Clients)) + { -+ bio = SSL_get_wbio(c->http.tls); -+ BIO_ctrl(bio, BIO_C_SET_FILE_PTR, 0, (char *)HTTP(c)); ++ if (c->http.tls) ++ BIO_ctrl(SSL_get_wbio(c->http.tls), BIO_C_SET_FILE_PTR, 0, (char *)HTTP(c)); + } + cupsArrayRestore (Clients); +#endif diff --git a/cups.spec b/cups.spec index 960b6e3..75fa3ca 100644 --- a/cups.spec +++ b/cups.spec @@ -450,6 +450,8 @@ rm -rf $RPM_BUILD_ROOT %changelog * Tue Nov 13 2007 Tim Waugh +- Fixed CVE-2007-4045 patch; has no effect with shipped packages since they + are linked with gnutls. - LSPP cupsdSetString/ClearString fixes (bug #378451). * Wed Nov 7 2007 Tim Waugh 1:1.3.4-2