]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix a DBUS crash if colord is not running (STR #4496)
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Tue, 21 Oct 2014 13:35:54 +0000 (13:35 +0000)
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Tue, 21 Oct 2014 13:35:54 +0000 (13:35 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12225 a1ca3aef-8c08-0410-bb20-df032aa958be

CHANGES-2.0.txt
scheduler/colorman.c
xcode/CUPS.xcodeproj/project.pbxproj

index a6ef2755cc8d094a5373fde6d1d6b46cedd30b42..f78b0bbf5c6d74207781da2f46901fecafd6122e 100644 (file)
@@ -11,6 +11,8 @@ CHANGES IN CUPS V2.0.1
        - The web interface now protects against frame "click-jacking" attacks
          (STR #4492)
        - Fixed a crash in ippAttributeString (<rdar://problem/17903871>)
+       - Fixed a crash in the scheduler on Linux/*BSD if colord was not running
+         (STR #4496)
        - Added systemd support for cups-lpd (STR #4493)
        - The scheduler did not honor the FatalErrors directive for mis-
          configured Group and SystemGroup values (STR #4495)
index 992ac2eff70f7ae0348b24e4eb55e02508e0bdf5..84437b207af8ce13e3911171bb94efaf95871908 100644 (file)
@@ -186,7 +186,8 @@ void
 cupsdStopColor(void)
 {
 #if !defined(__APPLE__) && defined(HAVE_DBUS)
-  dbus_connection_unref(colord_con);
+  if (colord_con)
+    dbus_connection_unref(colord_con);
   colord_con = NULL;
 #endif /* !__APPLE__ && HAVE_DBUS */
 }
index 908e485686900a8729478a2e3b0008dcd25876a3..3ca5c990d0f4202dd4c015ac823870e122a91f82 100644 (file)
                                7226369C18AE6D19004ED309 /* org.cups.cupsd.plist */,
                                72E65BD718DC818400097E89 /* org.cups.cupsd.service.in */,
                                72E65BD818DC818400097E89 /* org.cups.cupsd.socket.in */,
-                               72D53A3615B4929D003F877F /* colorman.c */,
-                               72D53A3715B4929D003F877F /* colorman.h */,
                                72220F6913330B0C00FCA411 /* auth.c */,
                                72220F6A13330B0C00FCA411 /* auth.h */,
                                72220F6B13330B0C00FCA411 /* banners.c */,
                                72220F7013330B0C00FCA411 /* classes.h */,
                                72220F7113330B0C00FCA411 /* client.c */,
                                72220F7213330B0C00FCA411 /* client.h */,
+                               72D53A3615B4929D003F877F /* colorman.c */,
+                               72D53A3715B4929D003F877F /* colorman.h */,
                                72220F7313330B0C00FCA411 /* conf.c */,
                                72220F7413330B0C00FCA411 /* conf.h */,
                                72220F7513330B0C00FCA411 /* cupsd.h */,