[hipl-commit] [trunk] Rev 3632: Fixed return value in convert_ipv6_slash_to_ipv4_slash().

  • From: Miika Komu <miika@xxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Sun, 14 Feb 2010 17:06:16 +0200

Committer: Miika Komu <miika@xxxxxx>
Date: Sun Feb 14 17:05:22 2010 +0200
Revision: 3632
Revision-id: miika@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  Fixed return value in convert_ipv6_slash_to_ipv4_slash().
  
  convert_ipv6_slash_to_ipv4_slash() did not return a proper return value
  in all cases. Fixed.

Modified:
  M  lib/tool/nlink.c

=== modified file 'lib/tool/nlink.c'
--- lib/tool/nlink.c    2010-02-14 15:04:32 +0000
+++ lib/tool/nlink.c    2010-02-14 15:05:22 +0000
@@ -1064,7 +1064,7 @@
     struct in6_addr ip6_aux;
     char *slash     = strchr(ip, '/');
     char *aux_slash = NULL;
-    int err;
+    int err = 0;
 
     if (slash) {
         HIP_IFEL(!(aux_slash = HIP_MALLOC(sizeof(slash), 0)), -1, "alloc\n");

Other related posts:

  • » [hipl-commit] [trunk] Rev 3632: Fixed return value in convert_ipv6_slash_to_ipv4_slash(). - Miika Komu