1
0
forked from rpms/rpcbind

Fixed an ipv6 related segfault on startup (bz 240873)

This commit is contained in:
Steve Dickson 2007-05-22 15:47:47 +00:00
parent b031d84da8
commit bb33986837
2 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,12 @@
--- rpcbind-0.1.4/src/util.c.iff_up 2007-05-22 11:14:39.000000000 -0400
+++ rpcbind-0.1.4/src/util.c 2007-05-22 11:14:56.000000000 -0400
@@ -359,7 +359,8 @@ network_init()
* interface, join the RPC multicast group on that interface.
*/
for (ifap = ifp; ifap != NULL; ifap = ifap->ifa_next) {
- if (ifap->ifa_addr->sa_family != AF_INET6 ||
+ if (!ifap->ifa_addr ||
+ ifap->ifa_addr->sa_family != AF_INET6 ||
!(ifap->ifa_flags & IFF_MULTICAST))
continue;
ifindex = if_nametoindex(ifap->ifa_name);

View File

@ -2,7 +2,7 @@
Name: rpcbind
Version: 0.1.4
Release: 5%{?dist}
Release: 6%{?dist}
Summary: Universal Addresses to RPC Program Number Napper
Group: System Environment/Daemons
License: GPL
@ -27,6 +27,7 @@ Patch1: rpcbind-0.1.4-compile.patch
Patch2: rpcbind-0.1.4-debug.patch
Patch3: rpcbind-0.1.4-warmstarts.patch
Patch4: rpcbind-0.1.4-rpcuser.patch
Patch5: rpcbind-0.1.4-iff_up.patch
%description
The rpcbind utility is a server that converts RPC program numbers into
@ -40,6 +41,8 @@ RPC calls on a server on that machine.
%patch2 -p1
%patch3 -p1
%patch4 -p1
# 240873: rpcbind segfaults on startup - ipv6 related
%patch5 -p1
%build
%ifarch s390 s390x
@ -118,6 +121,9 @@ fi
%dir %attr(700,rpc,rpc) /var/lib/rpcbind
%changelog
* Tue May 22 2007 Steve Dickson <steved@redhat.com> 0.1.4-6
- Fixed an ipv6 related segfault on startup (bz 240873)
* Wed Apr 18 2007 Steve Dickson <steved@redhat.com> 0.1.4-5
- Added dependency on setup which contains the correct
rpcbind /etc/service entry which in turns stops