summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorgreen <green@FreeBSD.org>2004-09-22 12:53:27 +0000
committergreen <green@FreeBSD.org>2004-09-22 12:53:27 +0000
commitf45221919b51dd6658f4eab9eb656748e625de39 (patch)
treebaffd967cc253a2d34552b9e50a53d8c13efcf17 /sys
parent41e930f4803c0d151b08a076f014e9458115444e (diff)
downloadFreeBSD-src-f45221919b51dd6658f4eab9eb656748e625de39.zip
FreeBSD-src-f45221919b51dd6658f4eab9eb656748e625de39.tar.gz
Call sbuf_finish() before sbuf_data() so as to not panic the system.
Diffstat (limited to 'sys')
-rw-r--r--sys/net/if.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index 55c35ae..774f7f3 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -1564,6 +1564,7 @@ again:
}
ifc->ifc_len = valid_len;
+ sbuf_finish(sb);
error = copyout(sbuf_data(sb), ifc->ifc_req, ifc->ifc_len);
sbuf_delete(sb);
return (error);
OpenPOWER on IntegriCloud