fixed compiler warning 4.3.1
authorAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 22 May 2009 12:15:39 +0000 (14:15 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 22 May 2009 12:15:39 +0000 (14:15 +0200)
src/pluto/nat_traversal.c

index a9501ec..10db77a 100644 (file)
@@ -145,6 +145,9 @@ static void _natd_hash(const struct hash_desc *oakley_hasher, char *hash,
                                break;
                        case AF_INET6:
                                addr_chunk = chunk_from_thing(ip->u.v6.sin6_addr.s6_addr);
+                               break;
+                       default:
+                               addr_chunk = chunk_empty; /* should never occur */ 
                }
                hasher->get_hash(hasher, addr_chunk, NULL);
                hasher->get_hash(hasher, port_chunk, hash);