From b1ae9679089f958d01020e7a77b40be504740c2c Mon Sep 17 00:00:00 2001 From: Cristian Iorga Date: Tue, 15 Jan 2013 22:08:45 +0200 Subject: 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 Signed-off-by: Cristian Iorga Signed-off-by: Saul Wold Signed-off-by: Richard Purdie --- .../connman/inet-fix-ip-cleanup-functions.patch | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 meta/recipes-connectivity/connman/connman/inet-fix-ip-cleanup-functions.patch (limited to 'meta/recipes-connectivity/connman/connman/inet-fix-ip-cleanup-functions.patch') 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 @@ +From 100353e10f60a50ca1ba78daa6bc4dfebf5b3297 Mon Sep 17 00:00:00 2001 +From: Constantin Musca +Date: Wed, 5 Dec 2012 15:07:21 +0200 +Subject: [PATCH] inet: fix ip cleanup functions + +Upstream-Status: Pending +Signed-off-by: Constantin Musca +--- + src/inet.c | 8 ++++++++ + 1 file changed, 8 insertions(+) + +diff --git a/src/inet.c b/src/inet.c +index be69aca..e76a1f1 100644 +--- a/src/inet.c ++++ b/src/inet.c +@@ -626,6 +626,10 @@ int connman_inet_clear_ipv6_address(int index, const char *address, + + DBG("index %d address %s prefix_len %d", index, address, prefix_len); + ++ if (address == NULL) { ++ return -1; ++ } ++ + err = __connman_inet_modify_address(RTM_DELADDR, 0, index, AF_INET6, + address, NULL, prefix_len, NULL); + if (err < 0) { +@@ -649,6 +653,10 @@ int connman_inet_clear_address(int index, struct connman_ipaddress *ipaddress) + + DBG("index %d address %s prefix_len %d", index, address, prefix_len); + ++ if (address == NULL) { ++ return -1; ++ } ++ + err = __connman_inet_modify_address(RTM_DELADDR, 0, index, AF_INET, + address, peer, prefix_len, broadcast); + if (err < 0) { +-- +1.7.11.7 + -- cgit v1.2.3-54-g00ecf