Revision e17edb88 ml.c

View differences:

ml.c
403 403
	char str[1000];
404 404

  
405 405
	// Monitoring layer hook
406
	if(get_Recv_data_inf_cb != NULL && msg_h->len_mon_data_hdr != 0) {
406
	if(get_Recv_data_inf_cb != NULL) {
407 407
		// update pointer to the real data
408 408
		msgbuf += msg_h->len_mon_data_hdr;
409 409
		msg_size -= msg_h->len_mon_data_hdr;
......
1097 1097
	msg_size = recvSize - MSG_HEADER_SIZE - msg_h->len_mon_packet_hdr;
1098 1098

  
1099 1099

  
1100
	if(get_Recv_pkt_inf_cb != NULL && msg_h->len_mon_packet_hdr != 0) {
1100
	if(get_Recv_pkt_inf_cb != NULL) {
1101 1101
		mon_pkt_inf msginfNow;
1102 1102
		msginfNow.monitoringHeaderLen = msg_h->len_mon_packet_hdr;
1103 1103
		msginfNow.monitoringHeader = msg_h->len_mon_packet_hdr ? &msgbuf[0] + MSG_HEADER_SIZE : NULL;

Also available in: Unified diff