Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F101991317
D46013.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
538 B
Referenced Files
None
Subscribers
None
D46013.id.diff
View Options
diff --git a/usr.sbin/ctld/isns.c b/usr.sbin/ctld/isns.c
--- a/usr.sbin/ctld/isns.c
+++ b/usr.sbin/ctld/isns.c
@@ -48,14 +48,14 @@
{
struct isns_req *req;
- req = calloc(sizeof(struct isns_req), 1);
+ req = calloc(1, sizeof(struct isns_req));
if (req == NULL) {
log_err(1, "calloc");
return (NULL);
}
req->ir_buflen = sizeof(struct isns_hdr);
req->ir_usedlen = 0;
- req->ir_buf = calloc(req->ir_buflen, 1);
+ req->ir_buf = calloc(1, req->ir_buflen);
if (req->ir_buf == NULL) {
free(req);
log_err(1, "calloc");
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 7, 6:49 AM (11 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14506197
Default Alt Text
D46013.id.diff (538 B)
Attached To
Mode
D46013: ctld: Consistently use item count as the first argument to calloc
Attached
Detach File
Event Timeline
Log In to Comment