Changeset 5572:7ad7d8250612 in roaraudio


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

small checks to avoid segfault with stupid users. ;)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roarclients/roarclientpass.c

    r5570 r5572  
    188188   } else if ( !strcasecmp(k, "connect") ) { 
    189189    mode = ROAR_SOCKET_MODE_CONNECT; 
     190    flags |= ROAR_CLIENTPASS_FLAG_LISTEN; 
    190191    flags -= ROAR_CLIENTPASS_FLAG_LISTEN; 
    191192   } else { 
     
    221222   ROAR_ERR("Too may socket types given"); 
    222223   return 30; 
     224  } 
     225 
     226  if ( host == NULL ) { 
     227   ROAR_ERR("No bind address given. Use --bind."); 
     228   return 33; 
    223229  } 
    224230 
Note: See TracChangeset for help on using the changeset viewer.