Changeset 3296 in MondoRescue


Ignore:
Timestamp:
Jun 6, 2014, 5:44:16 AM (10 years ago)
Author:
Bruno Cornec
Message:

Fix #747 by returning early enough to avoid using a bad value for file length

Location:
branches
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/mondo/src/common/libmondo-stream.c

    r3192 r3296  
    17851785    /*@ end vars *************************************************** */
    17861786
     1787    /* If file doesn't exist then return immediately */
     1788    if (length_of_incoming_file <= 0) {
     1789        return(1);
     1790    }
    17871791
    17881792    olen = length_of_incoming_file;
  • branches/3.2/mondo/src/common/libmondo-stream.c

    r3271 r3296  
    17591759    /*@ end vars *************************************************** */
    17601760
     1761    if (length_of_incoming_file <= 0) {
     1762        return(1);
     1763    }
    17611764
    17621765    olen = length_of_incoming_file;
Note: See TracChangeset for help on using the changeset viewer.