mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-11 17:04:19 +01:00
Fix passing wrong variables to nvlist_destroy() after r333446.
Reported by: Alexander Fedorov (IT-Grad.ru) MFC after: 5 days
This commit is contained in:
parent
c2231fb0f8
commit
1f03d0bae1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=342349
@ -667,7 +667,7 @@ cctl_port(int fd, int argc, char **argv, char *combinedopt)
|
|||||||
}
|
}
|
||||||
|
|
||||||
bailout:
|
bailout:
|
||||||
nvlist_destroy(req.args_nvl);
|
nvlist_destroy(option_list);
|
||||||
free(driver);
|
free(driver);
|
||||||
return (retval);
|
return (retval);
|
||||||
|
|
||||||
@ -2542,7 +2542,7 @@ cctl_create_lun(int fd, int argc, char **argv, char *combinedopt)
|
|||||||
fprintf(stdout, "Device ID: %s\n", req.reqdata.create.device_id);
|
fprintf(stdout, "Device ID: %s\n", req.reqdata.create.device_id);
|
||||||
|
|
||||||
bailout:
|
bailout:
|
||||||
nvlist_destroy(req.args_nvl);
|
nvlist_destroy(option_list);
|
||||||
return (retval);
|
return (retval);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2644,7 +2644,7 @@ cctl_rm_lun(int fd, int argc, char **argv, char *combinedopt)
|
|||||||
printf("LUN %d removed successfully\n", lun_id);
|
printf("LUN %d removed successfully\n", lun_id);
|
||||||
|
|
||||||
bailout:
|
bailout:
|
||||||
nvlist_destroy(req.args_nvl);
|
nvlist_destroy(option_list);
|
||||||
return (retval);
|
return (retval);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2764,7 +2764,7 @@ cctl_modify_lun(int fd, int argc, char **argv, char *combinedopt)
|
|||||||
printf("LUN %d modified successfully\n", lun_id);
|
printf("LUN %d modified successfully\n", lun_id);
|
||||||
|
|
||||||
bailout:
|
bailout:
|
||||||
nvlist_destroy(req.args_nvl);
|
nvlist_destroy(option_list);
|
||||||
return (retval);
|
return (retval);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user