diff options
author | Cristian Iorga <cristian.iorga@intel.com> | 2013-01-15 22:08:45 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-01-16 11:57:33 +0000 |
commit | b1ae9679089f958d01020e7a77b40be504740c2c (patch) | |
tree | 83551c2698c8ce9822cd10f1f338a3b8c0382ad9 /meta/recipes-connectivity/connman/connman/inet-fix-ip-cleanup-functions.patch | |
parent | 7048fbdc05c1f2d9acaf1052550dec792c1f18da (diff) | |
download | poky-b1ae9679089f958d01020e7a77b40be504740c2c.tar.gz |
connman: upgrade to 1.10
0002-storage.c-If-there-is-no-d_type-support-use-fstatat.patch
- adapted to the new version
0001-timezone.c-If-there-is-no-d_type-support-use-fstatat.patch
- patch removed (it is included in the new version)
inet-fix-ip-cleanup-functions.patch: added
- fix for ip cleanup functions
(From OE-Core rev: e0cca947fc87c8f7a6d2a8fd719c87d56dd52941)
Signed-off-by: Constantin Musca <constantinx.musca@intel.com>
Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/connman/connman/inet-fix-ip-cleanup-functions.patch')
-rw-r--r-- | meta/recipes-connectivity/connman/connman/inet-fix-ip-cleanup-functions.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/connman/connman/inet-fix-ip-cleanup-functions.patch b/meta/recipes-connectivity/connman/connman/inet-fix-ip-cleanup-functions.patch new file mode 100644 index 0000000000..3071549d95 --- /dev/null +++ b/meta/recipes-connectivity/connman/connman/inet-fix-ip-cleanup-functions.patch | |||
@@ -0,0 +1,40 @@ | |||
1 | From 100353e10f60a50ca1ba78daa6bc4dfebf5b3297 Mon Sep 17 00:00:00 2001 | ||
2 | From: Constantin Musca <constantinx.musca@intel.com> | ||
3 | Date: Wed, 5 Dec 2012 15:07:21 +0200 | ||
4 | Subject: [PATCH] inet: fix ip cleanup functions | ||
5 | |||
6 | Upstream-Status: Pending | ||
7 | Signed-off-by: Constantin Musca <constantinx.musca@intel.com> | ||
8 | --- | ||
9 | src/inet.c | 8 ++++++++ | ||
10 | 1 file changed, 8 insertions(+) | ||
11 | |||
12 | diff --git a/src/inet.c b/src/inet.c | ||
13 | index be69aca..e76a1f1 100644 | ||
14 | --- a/src/inet.c | ||
15 | +++ b/src/inet.c | ||
16 | @@ -626,6 +626,10 @@ int connman_inet_clear_ipv6_address(int index, const char *address, | ||
17 | |||
18 | DBG("index %d address %s prefix_len %d", index, address, prefix_len); | ||
19 | |||
20 | + if (address == NULL) { | ||
21 | + return -1; | ||
22 | + } | ||
23 | + | ||
24 | err = __connman_inet_modify_address(RTM_DELADDR, 0, index, AF_INET6, | ||
25 | address, NULL, prefix_len, NULL); | ||
26 | if (err < 0) { | ||
27 | @@ -649,6 +653,10 @@ int connman_inet_clear_address(int index, struct connman_ipaddress *ipaddress) | ||
28 | |||
29 | DBG("index %d address %s prefix_len %d", index, address, prefix_len); | ||
30 | |||
31 | + if (address == NULL) { | ||
32 | + return -1; | ||
33 | + } | ||
34 | + | ||
35 | err = __connman_inet_modify_address(RTM_DELADDR, 0, index, AF_INET, | ||
36 | address, peer, prefix_len, broadcast); | ||
37 | if (err < 0) { | ||
38 | -- | ||
39 | 1.7.11.7 | ||
40 | |||