~ubuntu-branches/debian/squeeze/ntp/squeeze-201010051545

« back to all changes in this revision

Viewing changes to debian/patches/no-ipv6-fix.patch

  • Committer: Bazaar Package Importer
  • Author(s): Kurt Roeckx
  • Date: 2009-01-05 21:10:03 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20090105211003-mh6zc3um4k1uhsj7
Tags: 1:4.2.4p4+dfsg-8
It did not properly check the return value of EVP_VerifyFinal
which results in an malformed DSA signature being treated as
a good signature rather than as an error.  (CVE-2009-0021)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
compilation fix for systems without IPv6 support (bug #387665,
 
2
http://bugs.ntp.org/977)
 
3
 
 
4
--- ntp-4.2.2.orig/libisc/net.c
 
5
+++ ntp-4.2.2/libisc/net.c
 
6
@@ -206,7 +206,6 @@
 
7
        RUNTIME_CHECK(isc_once_do(&once_ipv6only,
 
8
                                  try_ipv6only) == ISC_R_SUCCESS);
 
9
 }
 
10
-#endif /* IPV6_V6ONLY */
 
11
 
 
12
 static void
 
13
 try_ipv6pktinfo(void) {
 
14
@@ -257,6 +256,7 @@
 
15
                                  try_ipv6pktinfo) == ISC_R_SUCCESS);
 
16
 }
 
17
 #endif /* WANT_IPV6 */
 
18
+#endif /* ISC_PLATFORM_HAVEIPV6 */
 
19
 
 
20
 isc_result_t
 
21
 isc_net_probe_ipv6only(void) {