diff options
Diffstat (limited to 'debian/patches/0145-avahi.patch')
-rw-r--r-- | debian/patches/0145-avahi.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/debian/patches/0145-avahi.patch b/debian/patches/0145-avahi.patch new file mode 100644 index 0000000..a5d98ef --- /dev/null +++ b/debian/patches/0145-avahi.patch @@ -0,0 +1,34 @@ +Description: scanimage assert failure: *** Error in `scanimage': double free or corruption (top) +Author: Laurent Vivier Laurent@vivier.eu +Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/sane-backends/+bug/1208091 +Forwarded: not-needed +Last-Update: 2017-06-20 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +Index: trunk/backend/net.c +=================================================================== +--- trunk.orig/backend/net.c ++++ trunk/backend/net.c +@@ -962,10 +962,6 @@ sane_init (SANE_Int * version_code, SANE + first_device = NULL; + first_handle = NULL; + +-#if WITH_AVAHI +- net_avahi_init (); +-#endif /* WITH_AVAHI */ +- + auth_callback = authorize; + + /* Return the version number of the sane-backends package to allow +@@ -1117,6 +1113,11 @@ sane_init (SANE_Int * version_code, SANE + DBG (2, "sane_init: connect timeout set to %d seconds from env\n", connect_timeout); + } + ++#if WITH_AVAHI ++ net_avahi_init (); ++#endif /* WITH_AVAHI */ ++ ++ + DBG (2, "sane_init: done\n"); + return SANE_STATUS_GOOD; + } |