Do not segfault when creating a peer veth link without a name
This commit is contained in:
parent
b4de79a4f7
commit
a3822ddc4b
@ -4,7 +4,7 @@
|
|||||||
Summary: Advanced IP routing and network device configuration tools
|
Summary: Advanced IP routing and network device configuration tools
|
||||||
Name: iproute
|
Name: iproute
|
||||||
Version: 2.6.35
|
Version: 2.6.35
|
||||||
Release: 6%{?dist}
|
Release: 7%{?dist}
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
##Source: iproute2-%{date_version}.tar.bz2
|
##Source: iproute2-%{date_version}.tar.bz2
|
||||||
Source: http://developer.osdl.org/dev/iproute2/download/iproute2-%{version}.tar.bz2
|
Source: http://developer.osdl.org/dev/iproute2/download/iproute2-%{version}.tar.bz2
|
||||||
@ -19,6 +19,7 @@ Patch6: iproute2-2.6.29-IPPROTO_IP_for_SA.patch
|
|||||||
Patch7: iproute2-example-cbq-service.patch
|
Patch7: iproute2-example-cbq-service.patch
|
||||||
Patch8: iproute2-2.6.35-print-route.patch
|
Patch8: iproute2-2.6.35-print-route.patch
|
||||||
Patch9: iproute2-print-route-u32.patch
|
Patch9: iproute2-print-route-u32.patch
|
||||||
|
Patch10: iproute2-2.6.33-create-peer-veth-without-a-name.patch
|
||||||
|
|
||||||
License: GPLv2+ and Public Domain
|
License: GPLv2+ and Public Domain
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
@ -53,6 +54,7 @@ The iproute documentation contains howtos and examples of settings.
|
|||||||
%patch7 -p1 -b .fix_cbq
|
%patch7 -p1 -b .fix_cbq
|
||||||
%patch8 -p1 -b .print-route
|
%patch8 -p1 -b .print-route
|
||||||
%patch9 -p1 -b .print-route-u32
|
%patch9 -p1 -b .print-route-u32
|
||||||
|
%patch10 -p1 -b .peer-veth-without-name
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export LIBDIR=/%{_libdir}
|
export LIBDIR=/%{_libdir}
|
||||||
@ -134,6 +136,9 @@ EOF
|
|||||||
%doc RELNOTES
|
%doc RELNOTES
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Oct 12 2010 Petr Sabata <psabata@redhat.com> - 2.6.33-7
|
||||||
|
- Do not segfault if peer name is omitted when creating a peer veth link, rhbz#642322
|
||||||
|
|
||||||
* Mon Oct 11 2010 Petr Sabata <psabata@redhat.com> - 2.6.35-6
|
* Mon Oct 11 2010 Petr Sabata <psabata@redhat.com> - 2.6.35-6
|
||||||
- Man-pages update, rhbz#641599
|
- Man-pages update, rhbz#641599
|
||||||
|
|
||||||
|
11
iproute2-2.6.33-create-peer-veth-without-a-name.patch
Normal file
11
iproute2-2.6.33-create-peer-veth-without-a-name.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- iproute2-2.6.33/ip/link_veth.c 2010-02-25 04:56:50.000000000 +0100
|
||||||
|
+++ iproute2-2.6.33/ip/link_veth.c.new 2010-10-12 17:25:01.159138225 +0200
|
||||||
|
@@ -27,7 +27,7 @@
|
||||||
|
static int veth_parse_opt(struct link_util *lu, int argc, char **argv,
|
||||||
|
struct nlmsghdr *hdr)
|
||||||
|
{
|
||||||
|
- char *name, *type, *link, *dev;
|
||||||
|
+ char *name = NULL, *type = NULL, *link = NULL, *dev = NULL;
|
||||||
|
int err, len;
|
||||||
|
struct rtattr * data;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user