Revision a519eb13 src/um/QuotaDatastore.cc

View differences:

src/um/QuotaDatastore.cc
41 41
        return false;
42 42
    }
43 43

  
44
    if ( tmpl->get("SIZE", size) == false )
44
    if ( tmpl->get("SIZE", size) == false || size < 0 )
45 45
    {
46
        error = "Size not defined for image";
46
        error = "Image size must be a positive integer value";
47 47
        return false;
48 48
    }
49 49

  

Also available in: Unified diff