summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2010-09-15 15:40:15 -0700
committerJeremy Allison <jra@samba.org>2010-09-15 15:40:15 -0700
commit447d96878a8b5a335447c37eca2a46b7133caa78 (patch)
treee78f895079ee006c6d88f7094be9c41e3df4d3ed /source3/libsmb
parentdb8cfda320d0e2453d01cdae884fd8aa108bcda7 (diff)
downloadsamba-447d96878a8b5a335447c37eca2a46b7133caa78.tar.gz
samba-447d96878a8b5a335447c37eca2a46b7133caa78.tar.bz2
samba-447d96878a8b5a335447c37eca2a46b7133caa78.zip
Fix all sid_parse returns to be checked. Tidy up some checks and error
messages. Jeremy.
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/cliquota.c4
1 files changed, 3 insertions, 1 deletions
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;