Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F131839320
D28964.id84786.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
474 B
Referenced Files
None
Subscribers
None
D28964.id84786.diff
View Options
diff --git a/lib/libifconfig/libifconfig.c b/lib/libifconfig/libifconfig.c
--- a/lib/libifconfig/libifconfig.c
+++ b/lib/libifconfig/libifconfig.c
@@ -511,7 +511,9 @@
len = ifgr->ifgr_len;
ifgr->ifgr_groups = (struct ifg_req *)malloc(len);
if (ifgr->ifgr_groups == NULL) {
- return (1);
+ h->error.errtype = OTHER;
+ h->error.errcode = ENOMEM;
+ return (-1);
}
bzero(ifgr->ifgr_groups, len);
if (ifconfig_ioctlwrap(h, AF_LOCAL, SIOCGIFGROUP, ifgr) == -1) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Oct 12, 2:49 PM (3 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23601162
Default Alt Text
D28964.id84786.diff (474 B)
Attached To
Mode
D28964: libifconfig: Fix handling of malloc fail in ifconfig_get_groups
Attached
Detach File
Event Timeline
Log In to Comment