diff options
author | Martin Willi <martin@strongswan.org> | 2006-04-26 12:45:15 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2006-04-26 12:45:15 +0000 |
commit | 108b489f88ae4388c1eada3dfe8cceaba6adde85 (patch) | |
tree | 9f0d079165c4d131b97b1e907261d3bab31c7ed5 /Source | |
parent | b92eef2868d989b3fe820c5b0dfa7380cf8deb35 (diff) | |
download | strongswan-108b489f88ae4388c1eada3dfe8cceaba6adde85.tar.bz2 strongswan-108b489f88ae4388c1eada3dfe8cceaba6adde85.tar.xz |
- fixed spi conversion
Diffstat (limited to 'Source')
-rw-r--r-- | Source/charon/sa/child_sa.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/charon/sa/child_sa.c b/Source/charon/sa/child_sa.c index c2b3c4421..f5828be2e 100644 --- a/Source/charon/sa/child_sa.c +++ b/Source/charon/sa/child_sa.c @@ -472,7 +472,7 @@ static void log_status(private_child_sa_t *this, logger_t *logger) iterator_t *iterator; sa_policy_t *policy; struct protoent *proto; - char proto_buf[16] = ""; + char proto_buf[8] = ""; char *proto_name = proto_buf; if (logger == NULL) @@ -480,8 +480,8 @@ static void log_status(private_child_sa_t *this, logger_t *logger) logger = this->logger; } logger->log(logger, CONTROL, " protected with ESP (%x/%x), AH (%x,%x); traffic:", - htons(this->my_esp_spi), htons(this->other_esp_spi), - htons(this->my_ah_spi), htons(this->other_ah_spi)); + htonl(this->my_esp_spi), htonl(this->other_esp_spi), + htonl(this->my_ah_spi), htonl(this->other_ah_spi)); iterator = this->policies->create_iterator(this->policies, TRUE); while (iterator->has_next(iterator)) { |