Call sbuf_finish() before sbuf_data() so as to not panic the system.
This commit is contained in:
parent
9e8bcb47ee
commit
04f1d33339
@ -1564,6 +1564,7 @@ ifconf(u_long cmd, caddr_t data)
|
||||
}
|
||||
|
||||
ifc->ifc_len = valid_len;
|
||||
sbuf_finish(sb);
|
||||
error = copyout(sbuf_data(sb), ifc->ifc_req, ifc->ifc_len);
|
||||
sbuf_delete(sb);
|
||||
return (error);
|
||||
|
Loading…
Reference in New Issue
Block a user