Mercurial > hg > freeDiameter
changeset 267:51d224448024
Workaround to allow interop with (bad) opendiameter
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Mon, 19 Apr 2010 12:15:56 +0900 |
parents | f404b5f84d7b |
children | b364ffffa2ed |
files | freeDiameter/p_ce.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/freeDiameter/p_ce.c Mon Apr 19 12:12:11 2010 +0900 +++ b/freeDiameter/p_ce.c Mon Apr 19 12:15:56 2010 +0900 @@ -708,6 +708,9 @@ /* Handshake if needed, start clear otherwise */ if ( ! fd_cnx_getTLS(peer->p_cnxctx) ) { int todo = peer->p_hdr.info.config.pic_flags.sec & peer->p_hdr.info.runtime.pir_isi ; + /* Special case: if the peer did not send a ISI AVP */ + if (peer->p_hdr.info.runtime.pir_isi == 0) + todo = peer->p_hdr.info.config.pic_flags.sec; if (todo == PI_SEC_NONE) { /* Ok for clear connection */