# HG changeset patch # User Sebastien Decugis # Date 1271646956 -32400 # Node ID 51d224448024546a313de456992cb95daba012f8 # Parent f404b5f84d7b7910fac645cdc52f24ebaeafa377 Workaround to allow interop with (bad) opendiameter diff -r f404b5f84d7b -r 51d224448024 freeDiameter/p_ce.c --- 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 */