Changeset 7524


Ignore:
Timestamp:
06/29/18 18:19:28 (3 weeks ago)
Author:
baker
Message:

fix access to socktimeout without dereferencing it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/data_exchange/ewexport2ringserver/src/network.c

    r6272 r7524  
    7878   
    7979  /* Set socket I/O timeouts if possible */ 
    80   if ( *socktimeout ) 
    81     { 
    82       int timeout = (socktimeout > 0) ? *socktimeout : - *socktimeout; 
     80  if ( *socktimeout != 0 ) 
     81    { 
     82      int timeout = abs( *socktimeout ); 
    8383       
    8484      if ( dlp_setsocktimeo (sock, timeout) == 1 ) 
     
    8888           
    8989          /* Negate timeout to indicate socket timeouts are set */ 
    90           *socktimeout = - timeout; 
     90          *socktimeout = -timeout; 
    9191        } 
    9292    } 
Note: See TracChangeset for help on using the changeset viewer.