From 447d96878a8b5a335447c37eca2a46b7133caa78 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 15 Sep 2010 15:40:15 -0700 Subject: Fix all sid_parse returns to be checked. Tidy up some checks and error messages. Jeremy. --- source3/libsmb/cliquota.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source3/libsmb') diff --git a/source3/libsmb/cliquota.c b/source3/libsmb/cliquota.c index 59c06ace79..002200ddaa 100644 --- a/source3/libsmb/cliquota.c +++ b/source3/libsmb/cliquota.c @@ -113,7 +113,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; -- cgit