- if (inode->i_security_id < -1) {
- ERROR("Dentry `%"TS"' has an invalid security ID (%d)",
- dentry_full_path(first_dentry), inode->i_security_id);
- return WIMLIB_ERR_INVALID_DENTRY;
- }
-
- if (inode->i_security_id >= 0 &&
- inode->i_security_id >= sd->num_entries)
+ if (inode->i_security_id < -1 ||
+ (inode->i_security_id >= 0 &&
+ inode->i_security_id >= sd->num_entries))