Gentoo Archives: gentoo-commits

From: "Peter Alfredsen (loki_val)" <loki_val@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-p2p/rtorrent/files: rtorrent-0.8.2-fix_scgi_crash.patch
Date: Tue, 26 Aug 2008 21:04:14
Message-Id: E1KY5i0-0000Zx-19@stork.gentoo.org
1 loki_val 08/08/26 21:04:12
2
3 Added: rtorrent-0.8.2-fix_scgi_crash.patch
4 Log:
5 Fix a crash in scgi_local or scgi_port when calling freeaddrinfo with a NULL pointer. Patch by Josef Drexler.
6 (Portage version: 2.2_rc8/cvs/Linux 2.6.25.8 i686)
7
8 Revision Changes Path
9 1.1 net-p2p/rtorrent/files/rtorrent-0.8.2-fix_scgi_crash.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/rtorrent/files/rtorrent-0.8.2-fix_scgi_crash.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-p2p/rtorrent/files/rtorrent-0.8.2-fix_scgi_crash.patch?rev=1.1&content-type=text/plain
13
14 Index: rtorrent-0.8.2-fix_scgi_crash.patch
15 ===================================================================
16 # Fix a crash in scgi_local or scgi_port when calling
17 # freeaddrinfo with a NULL pointer.
18 Index: rtorrent/src/command_network.cc
19 ===================================================================
20 --- rtorrent/src/command_network.cc (revision 1063)
21 +++ rtorrent/src/command_network.cc (working copy)
22 @@ -261,10 +261,10 @@
23 break;
24 }
25
26 - rak::address_info::free_address_info(ai);
27 + if (ai != NULL) rak::address_info::free_address_info(ai);
28
29 } catch (torrent::local_error& e) {
30 - rak::address_info::free_address_info(ai);
31 + if (ai != NULL) rak::address_info::free_address_info(ai);
32
33 throw torrent::input_error(e.what());
34 }