Changeset 4281:dc2eb6624082 in roaraudio for roard/req.c
- Timestamp:
- 08/28/10 20:21:20 (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/req.c
r4280 r4281 682 682 return -1; 683 683 684 for (i = 0; i < mes->datalen/2; i++) {684 for (i = 0; i < 2; i++) { 685 685 d[i] = ROAR_NET2HOST16(d[i]); 686 686 } … … 765 765 ROAR_DBG("req_on_get_stream_para(client=%i, ...): LTM request...", client); 766 766 767 if ( mes->datalen < (6 * 2) ) 768 return -1; 767 if ( mes->datalen < (6 * 2) ) { 768 ROAR_ERR("req_on_get_stream_para(client=%i, ...): LTM request of client is corruped: message too short", client); 769 return -1; 770 } 769 771 770 772 for (i = 2; i < mes->datalen/2; i++) { … … 772 774 } 773 775 774 if ( d[2] != ROAR_LTM_SST_GET_RAW ) 775 return -1; 776 if ( d[2] != ROAR_LTM_SST_GET_RAW ) { 777 ROAR_ERR("req_on_get_stream_para(client=%i, ...): LTM request of client is corruped: unknown LTM subtype: %i", client, (int)d[2]); 778 return -1; 779 } 776 780 777 781 ROAR_DBG("req_on_get_stream_para(client=%i, ...): LTM request of type GET_RAW", client);
Note: See TracChangeset
for help on using the changeset viewer.