fixed a at-least-one-year-old bug which caused crashed in the scheduler

This commit is contained in:
Martin Willi
2006-08-31 06:48:10 +00:00
parent c705698293
commit da8ab11e91
3 changed files with 10 additions and 8 deletions
+1 -1
View File
@@ -212,7 +212,7 @@ static chunk_t generate_natd_hash(private_ike_sa_init_t *this,
spi_i_chunk.len = sizeof(spi_i);
spi_r_chunk.ptr = (void*)&spi_r;
spi_r_chunk.len = sizeof(spi_r);
port = host->get_port(host);
port = htons(host->get_port(host));
port_chunk.ptr = (void*)&port;
port_chunk.len = sizeof(port);
addr_chunk = host->get_address(host);