Call sbuf_finish() before sbuf_data() so as to not panic the system.

This commit is contained in:
green 2004-09-22 12:53:27 +00:00
parent 9e8bcb47ee
commit 04f1d33339

View File

@ -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);