mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-24 16:10:11 +00:00
Check return value.
Found by: Coverity Prevent(tm) MFC after: 3 days
This commit is contained in:
parent
7192f621d0
commit
b5f30223fc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=154462
@ -611,6 +611,10 @@ g_eli_ctl_kill(struct gctl_req *req, struct g_class *mp)
|
||||
for (i = 0; i < *nargs; i++) {
|
||||
snprintf(param, sizeof(param), "arg%u", i);
|
||||
prov = gctl_get_asciiparam(req, param);
|
||||
if (prov == NULL) {
|
||||
G_ELI_DEBUG(0, "No 'arg%d' argument.", i);
|
||||
continue;
|
||||
}
|
||||
|
||||
sc = g_eli_find_device(mp, prov);
|
||||
if (sc == NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user