mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +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);
|
memset(cutstr, '\0', len+1);
|
||||||
host = strncat(cutstr, mnttype, sizeof(char) * len);
|
host = strncat(cutstr, mnttype, sizeof(char) * len);
|
||||||
testpath = strchr_m(mnttype, ':');
|
testpath = strchr_m(mnttype, ':');
|
||||||
|
if (testpath == NULL) {
|
||||||
|
errno = EINVAL;
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
testpath++;
|
testpath++;
|
||||||
gq_args.gqa_pathp = testpath;
|
gq_args.gqa_pathp = testpath;
|
||||||
gq_args.gqa_uid = id.uid;
|
gq_args.gqa_uid = id.uid;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user