Changeset 5714:d9d16e63c248 in roaraudio


Ignore:
Timestamp:
10/25/12 17:49:52 (11 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

avoid segfault in case host argument is NULL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/socket.c

    r5687 r5714  
    569569 ROAR_DBG("roar_socket_open(mode=%i, type=%i, host='%s', port=%i) = ?", mode, type, host, port); 
    570570 
     571 if ( host == NULL ) { 
     572  roar_err_set(ROAR_ERROR_FAULT); 
     573  return -1; 
     574 } 
     575 
    571576 roar_err_set(ROAR_ERROR_UNKNOWN); 
    572577 
Note: See TracChangeset for help on using the changeset viewer.