mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 10:37:22 +00:00
ID:394 - close fp if isn't NULL and set it NULL afterwards in USB plugin
Commit brings back check whether fp is or isn't NULL. If fp isn't NULL, close() is called and fp is set to NULL afterwards.
This commit is contained in:
parent
607cfe6f47
commit
5be090f047
@ -147,7 +147,10 @@ scsiProbeNew(int *num_ami_devices, int *sg_nos)
|
|||||||
}
|
}
|
||||||
|
|
||||||
*num_ami_devices = numdevfound;
|
*num_ami_devices = numdevfound;
|
||||||
|
if (fp != NULL) {
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
|
fp = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user