diff options
author | SUZUKI, Shinsuke <suz@kame.net> | 2006-09-20 08:22:24 +0000 |
---|---|---|
committer | SUZUKI, Shinsuke <suz@kame.net> | 2006-09-20 08:22:24 +0000 |
commit | 589c540aec7b2f87ae744458acee176af802ad1f (patch) | |
tree | 4086c6f5b5641e049a128840943a6a52774dabea | |
parent | 81526f52fbb283342b60008449400fb47f110ec1 (diff) |
fixed a bug that status-code option might include a unexpected garbage value. (Bug-ID 1561202)
-rw-r--r-- | CHANGES | 2 | ||||
-rw-r--r-- | common.c | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -1,6 +1,8 @@ 2006-09-20 SUZUKI, Shinsuke <suz@kame.net> * common.c: fixed a bug that dhcp6s inserts SIP server addresses into DNS server address option (Bug-ID 1561202). (degrade from 2006-07-30) + * common.c: fixed a bug that status-code option might include a unexpected + garbage value. (Bug-ID 1561202) 2006-09-20 STEVANT, Bruno <bruno.stevant@enst-bretagne.fr> * lease.c: Fix a memory violation in lease management. @@ -2166,7 +2166,7 @@ dhcp6_set_options(type, optbp, optep, optinfo) stcode = TAILQ_NEXT(stcode, link)) { u_int16_t code; - code = htons(stcode->val_num); + code = htons(stcode->val_num16); if (copy_option(DH6OPT_STATUS_CODE, sizeof(code), &code, &p, optep, &len) != 0) { goto fail; |