Fix bug #7669.
[metze/samba/wip.git] / source3 / libsmb / cliquota.c
index e40dac368d9ae6b5e686dcecdf202b4970ede921..2af5b22da5695c1e46f6bacba3aa5c473cce9256 100644 (file)
@@ -117,7 +117,9 @@ static bool parse_user_quota_record(const char *rdata, unsigned int rdata_count,
        }
 #endif /* LARGE_SMB_OFF_T */
 
-       sid_parse(rdata+40,sid_len,&qt.sid);
+       if (!sid_parse(rdata+40,sid_len,&qt.sid)) {
+               return false;
+       }
 
        qt.qtype = SMB_USER_QUOTA_TYPE;