Changeset 1120:c473581adff2 in freeDiameter for libfdcore/hooks.c
- Timestamp:
- May 14, 2013, 1:32:28 PM (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libfdcore/hooks.c
r1103 r1120 333 333 if (msg) { 334 334 DiamId_t id = NULL; 335 size_t idlen; 336 if (!fd_msg_source_get( msg, &id, &idlen )) 335 if (!fd_msg_source_get( msg, &id, NULL )) 337 336 id = (DiamId_t)"<error getting source>"; 338 337 … … 353 352 case HOOK_MESSAGE_ROUTING_ERROR: { 354 353 DiamId_t id = NULL; 355 size_t idlen; 356 if (!fd_msg_source_get( msg, &id, &idlen )) 354 if (!fd_msg_source_get( msg, &id, NULL )) 357 355 id = (DiamId_t)"<error getting source>"; 358 356 … … 397 395 398 396 case HOOK_PEER_CONNECT_SUCCESS: { 397 DiamId_t id = NULL; 398 if ((!fd_msg_source_get( msg, &id, NULL )) && (id == NULL)) { /* The CEA is locally issued */ 399 fd_msg_answ_getq(msg, &msg); /* We dump the CER in that case */ 400 } 399 401 CHECK_MALLOC_DO(fd_msg_dump_treeview(&buf, &len, NULL, msg, NULL, 0, 1), break); 400 402 LOG_N("Connected to '%s', remote capabilities: %s", peer ? peer->p_hdr.info.pi_diamid : "<unknown>", buf);
Note: See TracChangeset
for help on using the changeset viewer.