tizen 2.4 release accepted/tizen_2.4_mobile tizen_2.4 accepted/tizen/2.4/mobile/20151029.040614 submit/tizen_2.4/20151028.062907 tizen_2.4_mobile_release
authorjk7744.park <jk7744.park@samsung.com>
Sat, 24 Oct 2015 06:55:10 +0000 (15:55 +0900)
committerjk7744.park <jk7744.park@samsung.com>
Sat, 24 Oct 2015 06:55:10 +0000 (15:55 +0900)
LICENSE.mit [new file with mode: 0644]
acountry.c
packaging/c-ares.spec

diff --git a/LICENSE.mit b/LICENSE.mit
new file mode 100644 (file)
index 0000000..c6e52bc
--- /dev/null
@@ -0,0 +1,21 @@
+COPYRIGHT AND PERMISSION NOTICE
+
+Copyright (c)
+
+All rights reserved.
+
+Permission to use, copy, modify, and distribute this software for any purpose
+with or without fee is hereby granted, provided that the above copyright
+notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN
+NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
+DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
+OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
+OR OTHER DEALINGS IN THE SOFTWARE.
+
+Except as contained in this notice, the name of a copyright holder shall not
+be used in advertising or otherwise to promote the sale, use or other dealings
+in this Software without prior written authorization of the copyright holder.
index 210ef84..1009dfa 100644 (file)
@@ -562,6 +562,8 @@ static void find_country_from_cname(const char *cname, struct in_addr addr)
       if ((z0 != 'z' && z1 != 'z') || dot != cname+4)
         {
           printf("Unexpected CNAME %s (ver_1)\n", cname);
+         if (ccopy)
+                 free(ccopy);
           return;
         }
     }
@@ -572,12 +574,16 @@ static void find_country_from_cname(const char *cname, struct in_addr addr)
       if (z0 != 'z' && z1 != 'z')
         {
           printf("Unexpected CNAME %s (ver_2)\n", cname);
+         if (ccopy)
+                 free(ccopy);
           return;
         }
     }
   else
     {
       printf("Unexpected CNAME %s (ver?)\n", cname);
+      if (ccopy)
+             free(ccopy);
       return;
     }
 
index f385abd..50bdbf7 100644 (file)
@@ -1,6 +1,6 @@
 Name:       c-ares
 Summary:    library for asynchronous name resolves (development files)
-Version:    1.10.0_4
+Version:    1.10.0_5
 Release:    1
 Group:      System/Libraries
 License:    MIT