Changeset 4947:b4a9a8ce2235 in roaraudio


Ignore:
Timestamp:
05/09/11 22:31:56 (11 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

only do try to get peer creds if socket is != -1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/clients.c

    r4923 r4947  
    263263 c->fh = fh; 
    264264 
     265 if ( fh == -1 ) 
     266  return 0; 
     267 
    265268#ifdef SO_PEERCRED 
    266269 if (getsockopt(fh, SOL_SOCKET, SO_PEERCRED, &cred, &cred_len) != -1) { 
Note: See TracChangeset for help on using the changeset viewer.