Fix an unchecked return value in zfsd
It's pretty unlikely to actually hit this, but good to check it anyway Reported by: Coverity CID: 1362018 MFC after: 4 weeks Sponsored by: Spectra Logic Corp
This commit is contained in:
parent
daa0d9dd7e
commit
9df99d6ed0
@ -656,8 +656,11 @@ CaseFile::DeSerializeFile(const char *fileName)
|
||||
uint64_t vdevGUID;
|
||||
nvlist_t *vdevConf;
|
||||
|
||||
sscanf(fileName, "pool_%" PRIu64 "_vdev_%" PRIu64 ".case",
|
||||
&poolGUID, &vdevGUID);
|
||||
if (sscanf(fileName, "pool_%" PRIu64 "_vdev_%" PRIu64 ".case",
|
||||
&poolGUID, &vdevGUID) != 2) {
|
||||
throw ZfsdException("CaseFile::DeSerialize: "
|
||||
"Unintelligible CaseFile filename %s.\n", fileName);
|
||||
}
|
||||
existingCaseFile = Find(Guid(poolGUID), Guid(vdevGUID));
|
||||
if (existingCaseFile != NULL) {
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user