Changeset 688:8c3dc8584dab in freeDiameter for libfdcore/server.c
- Timestamp:
- Jan 19, 2011, 7:05:30 PM (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libfdcore/server.c
r686 r688 143 143 CHECK_FCT_DO( fd_msg_parse_rules( msg, fd_g_config->cnf_dict, NULL ), /* Parsing failed -- trace details ? */ goto cleanup ); 144 144 145 fd_msg_dump_walk(FULL, msg);146 147 145 /* Now check we received a CER */ 148 146 CHECK_FCT_DO( fd_msg_hdr ( msg, &hdr ), goto fatal_error ); … … 164 162 CHECK_POSIX_DO( pthread_mutex_unlock(&s->clients_mtx), goto fatal_error ); 165 163 164 /* Cleanup the parsed message if any */ 165 if (msg) { 166 fd_msg_log( FD_MSG_LOG_DROPPED, msg, "Received invalid/unexpected message from connecting client '%s'", fd_cnx_getid(c->conn) ); 167 CHECK_FCT_DO( fd_msg_free(msg), /* continue */); 168 } 169 166 170 /* Destroy the connection object if present */ 167 171 if (c->conn) … … 170 174 /* Cleanup the received buffer if any */ 171 175 free(buf); 172 173 /* Cleanup the parsed message if any */174 if (msg) {175 CHECK_FCT_DO( fd_msg_free(msg), /* continue */);176 }177 176 178 177 /* Detach the thread, cleanup the client structure */
Note: See TracChangeset
for help on using the changeset viewer.