libubus: fix stack space init for processing requests
authorFelix Fietkau <nbd@openwrt.org>
Tue, 30 Oct 2012 12:41:17 +0000 (13:41 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 30 Oct 2012 12:41:28 +0000 (13:41 +0100)
Fixes client timeouts on invoke on some platforms

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
libubus-obj.c

index 532a7fa..cf50904 100644 (file)
@@ -17,7 +17,7 @@
 void __hidden ubus_process_invoke(struct ubus_context *ctx, struct ubus_msghdr *hdr)
 {
        struct blob_attr **attrbuf;
-       struct ubus_request_data req;
+       struct ubus_request_data req = {};
        struct ubus_object *obj;
        int method;
        int ret = 0;