Changeset 5608:584b36c566e2 in roaraudio for libroar/basic.c


Ignore:
Timestamp:
07/31/12 15:31:35 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

Handle super long client names well (Closes: #286)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/basic.c

    r5471 r5608  
    510510  return -1; 
    511511 
    512  // specal hack to set an ilegal value used internaly in libroar: 
     512 // specal hack to set an illegal value used internaly in libroar: 
    513513 if ( fh == -2 ) 
    514514  fh = -1; 
     
    516516 if ( roar_vio_open_fh_socket(con->viocon, fh) != -1 ) { 
    517517  con->flags |= ROAR_CON_FLAGS_VIO; 
     518 } else { 
     519  return -1; 
    518520 } 
    519521 
     
    543545 
    544546struct roar_vio_calls * roar_get_connection_vio2 (struct roar_connection * con) { 
    545  if ( con == NULL ) 
     547 if ( con == NULL ) { 
     548  roar_err_set(ROAR_ERROR_FAULT); 
    546549  return NULL; 
     550 } 
    547551 
    548552 if ( con->flags & ROAR_CON_FLAGS_VIO ) 
     
    551555// TODO: try to open the VIO. 
    552556 
     557 roar_err_set(ROAR_ERROR_BADFH); 
    553558 return NULL; 
    554559} 
Note: See TracChangeset for help on using the changeset viewer.