Changeset 5429

Show
Ignore:
Timestamp:
03/18/08 04:26:06 (4 months ago)
Author:
morris
Message:

Check successful decryption

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trackerd/trunk/trackerd/tracker.c

    r5409 r5429  
    313313                 
    314314                data = wi_rsa_decrypt(wt_private_key, wi_data_with_bytes(buffer, bytes)); 
     315                 
     316                if(!data) { 
     317                        wi_log_err(WI_STR("Could not decrypt data from %@: %m"), ip); 
     318 
     319                        goto next; 
     320                } 
     321                 
    315322                string = wi_string_with_data(data); 
    316323