Mercurial > hg > freeDiameter
changeset 745:712c7bbf1016
Fix for bug on Origin-State-Id reported in http://lists.freediameter.net/pipermail/help/2011-May/000156.html
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Fri, 27 May 2011 17:17:03 +0900 |
parents | 3c7964da2262 |
children | 96c75744d3c4 |
files | libfdcore/p_dw.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libfdcore/p_dw.c Tue Mar 29 12:04:45 2011 +0900 +++ b/libfdcore/p_dw.c Fri May 27 17:17:03 2011 +0900 @@ -55,6 +55,11 @@ ASSERT(0); /* To check if this really happens, and understand why... */ } + if (! peer->p_hdr.info.runtime.pir_orstate) { + /* It was not already received in CER/CEA, save it now */ + peer->p_hdr.info.runtime.pir_orstate = hdr->avp_value->u32; + } + if (peer->p_hdr.info.runtime.pir_orstate != hdr->avp_value->u32) { TRACE_DEBUG(INFO, "Received a new Origin-State-Id from peer '%s'! (%x -> %x); resetting the connection.\n", peer->p_hdr.info.pi_diamid,