Changeset 4281:dc2eb6624082 in roaraudio


Ignore:
Timestamp:
08/28/10 20:21:20 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added more debug lions, corrected net2host handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/req.c

    r4280 r4281  
    682682  return -1; 
    683683 
    684  for (i = 0; i < mes->datalen/2; i++) { 
     684 for (i = 0; i < 2; i++) { 
    685685  d[i] = ROAR_NET2HOST16(d[i]); 
    686686 } 
     
    765765    ROAR_DBG("req_on_get_stream_para(client=%i, ...): LTM request...", client); 
    766766 
    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    } 
    769771 
    770772    for (i = 2; i < mes->datalen/2; i++) { 
     
    772774    } 
    773775 
    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    } 
    776780 
    777781    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.