Changeset 974:2091bf698fb1 in freeDiameter for libfdcore/p_ce.c
- Timestamp:
- Mar 15, 2013, 2:14:35 AM (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libfdcore/p_ce.c
r935 r974 306 306 if (fd_os_almostcasesrch(hdr->avp_value->os.data, hdr->avp_value->os.len, 307 307 peer->p_hdr.info.pi_diamid, peer->p_hdr.info.pi_diamidlen, NULL)) { 308 TRACE_DEBUG(INFO, "Received a message with Origin-Host set to '%.*s' while expecting '%s' \n",308 TRACE_DEBUG(INFO, "Received a message with Origin-Host set to '%.*s' while expecting '%s'", 309 309 hdr->avp_value->os.len, hdr->avp_value->os.data, peer->p_hdr.info.pi_diamid); 310 310 error->pei_errcode = "DIAMETER_AVP_NOT_ALLOWED"; … … 778 778 { 779 779 /* Handshake failed ... */ 780 fd_log_debug("TLS Handshake failed with peer '%s', resetting the connection \n", peer->p_hdr.info.pi_diamid);780 fd_log_debug("TLS Handshake failed with peer '%s', resetting the connection", peer->p_hdr.info.pi_diamid); 781 781 goto cleanup; 782 782 } ); … … 831 831 size_t len = strlen(peer->p_hdr.info.config.pic_realm); 832 832 if (fd_os_almostcasesrch(peer->p_hdr.info.config.pic_realm, len, peer->p_hdr.info.runtime.pir_realm, peer->p_hdr.info.runtime.pir_realmlen, NULL)) { 833 TRACE_DEBUG(INFO, "Rejected CER from peer '%s', realm mismatch with configured value (returning DIAMETER_UNKNOWN_PEER). \n", peer->p_hdr.info.pi_diamid);833 TRACE_DEBUG(INFO, "Rejected CER from peer '%s', realm mismatch with configured value (returning DIAMETER_UNKNOWN_PEER).", peer->p_hdr.info.pi_diamid); 834 834 pei.pei_errcode = "DIAMETER_UNKNOWN_PEER"; /* maybe AVP_NOT_ALLOWED would be better fit? */ 835 835 goto error_abort; … … 846 846 int res = fd_peer_validate( peer ); 847 847 if (res < 0) { 848 TRACE_DEBUG(INFO, "Rejected CER from peer '%s', validation failed (returning DIAMETER_UNKNOWN_PEER). \n", peer->p_hdr.info.pi_diamid);848 TRACE_DEBUG(INFO, "Rejected CER from peer '%s', validation failed (returning DIAMETER_UNKNOWN_PEER).", peer->p_hdr.info.pi_diamid); 849 849 pei.pei_errcode = "DIAMETER_UNKNOWN_PEER"; 850 850 goto error_abort; … … 931 931 { 932 932 /* Handshake failed ... */ 933 fd_log_debug("TLS Handshake failed with peer '%s', resetting the connection \n", peer->p_hdr.info.pi_diamid);933 fd_log_debug("TLS Handshake failed with peer '%s', resetting the connection", peer->p_hdr.info.pi_diamid); 934 934 goto cleanup; 935 935 } );
Note: See TracChangeset
for help on using the changeset viewer.