Changeset 5525:44f9ebf504c0 in roaraudio


Ignore:
Timestamp:
06/07/12 16:41:18 (6 years ago)
Author:
phi
Branch:
default
Message:

work around buggy getsockname() and getpeername() implementations. Why do OS vendors always break them?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/vio.c

    r5408 r5525  
    514514 
    515515    socklen = sizeof(sockaddr); 
     516    memset(&sockaddr, 0, socklen); // to make sure nothing will break. 
     517                                   // getsockname() and getpeername() 
     518                                   // seem to be broken on lost of systems. 
    516519 
    517520    if ( cmd == ROAR_VIO_CTL_GET_SOCKNAME ) { 
Note: See TracChangeset for help on using the changeset viewer.