[OpenWrt-Devel] [PATCH] [package] ubus: fixed a segent fault problem

yangchao1p at live.com yangchao1p at live.com
Thu Jun 18 08:39:58 EDT 2015


HI, allthis is a patch try to fix Signed-off-by:Yang Chao <yangchao1p at live.com>diff --git a/ubusd.c b/ubusd.c
index 8903105..ecf5bea 100644
--- a/ubusd.c
+++ b/ubusd.c
@@ -241,7 +241,7 @@ retry:
 
                fd_buf.fd = -1;

-               iov.iov_base = &cl->hdrbuf + offset;
+               iov.iov_base = (char *)&cl->hdrbuf + offset;
                iov.iov_len = sizeof(cl->hdrbuf) - offset;
 
                if (cl->pending_msg_fd < 0) {


yangchao1p at live.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20150618/c658802a/attachment.htm>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list