mirror of
https://github.com/samba-team/samba.git
synced 2025-01-24 02:04:21 +03:00
s3: Fix Coverity ID 2307, NULL_RETURNS
This commit is contained in:
parent
9a0676d5c9
commit
3e8a8fad59
@ -134,6 +134,10 @@ int sys_get_nfs_quota(const char *path, const char *bdev,
|
||||
memset(cutstr, '\0', len+1);
|
||||
host = strncat(cutstr, mnttype, sizeof(char) * len);
|
||||
testpath = strchr_m(mnttype, ':');
|
||||
if (testpath == NULL) {
|
||||
errno = EINVAL;
|
||||
goto out;
|
||||
}
|
||||
testpath++;
|
||||
gq_args.gqa_pathp = testpath;
|
||||
gq_args.gqa_uid = id.uid;
|
||||
|
Loading…
x
Reference in New Issue
Block a user