Support This Project

Changeset 1992

Show
Ignore:
Timestamp:
04/15/08 06:51:30 (9 months ago)
Author:
virdiq
Message:

Fix potential use of uninitialized variable in get_pasv_port.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libwzd-core/wzd_data.c

    r1966 r1992  
    9898int get_pasv_port(net_family_t family, wzd_context_t * context) 
    9999{ 
    100   int ret
     100  int ret = -1
    101101  socket_t sock; 
    102102  unsigned int port, count; 
     
    185185  } 
    186186 
    187   if (count == 0 && ret < 0) { 
     187  if (ret < 0) { 
    188188    out_log(LEVEL_HIGH,"Could not bind to any port in the PASV range\n"); 
    189189    socket_close(sock);