freecwmp
[Top] [All Lists]

[PATCH] fix boot event in every periodic inform

To: luka@openwrt.org
Subject: [PATCH] fix boot event in every periodic inform
From: rajsek <miran.rajsek@gmail.com>
Date: Wed, 20 Feb 2013 10:58:47 +0100
Cc: freecwmp@linux-mips.org, rajsek <miroslav.rajsek@innbox.net>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:signed-off-by; bh=q1GpdBBK3T6jZ9BAsn7VAwdsNK+MPvaS8Af5gy+MzzE=; b=FlCR+VL/LwijMQcgL8MPVSWEN9cTqdoMULB3K1k7CsIkGpidv/hbTTWt40XmGGewDQ Xb2l1HbiB5SjEkBfl/MXrU7aJlLt66pqBQx81pgSUxXlyEspvU7cpqOdSBT52ICdGiWE z8o/x0Y5WWocWGYk1ND+7SYABjN92hCXWIKmQxnVeMhdUkX7DEzfF6qjZ+6ypb3i720r 5403wWsTppW5GW4I+cAXLQ7A6cA9ouitkdyIyYBUBlN63LLEdnGeRr0YTdabmAZNa3d9 kdCg1jTSG4HhQibu0g2C+ynl5ESzkcTz83Kks2zx4VbMrlPGYvLAgLdeIV7VpEg688QZ ciGg==
In-reply-to: <1361354328-2719-1-git-send-email-rajsek@iskratel.si>
Original-recipient: rfc822;freecwmp@linux-mips.org
References: <1361354328-2719-1-git-send-email-rajsek@iskratel.si>
Sender: freecwmp-bounce@linux-mips.org
Signed-off-by: rajsek <miroslav.rajsek@innbox.net>
From: rajsek <miroslav.rajsek@innbox.net>

---
 src/cwmp.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/cwmp.c b/src/cwmp.c
index 2e45a30..d6b3936 100644
--- a/src/cwmp.c
+++ b/src/cwmp.c
@@ -113,6 +113,7 @@ int cwmp_inform(void)
        FREE(msg_out);
 
        cwmp_remove_event(BOOTSTRAP);
+       cwmp_remove_event(BOOT);
        cwmp_clear_notifications();
        http_client_exit();
        xml_exit();
@@ -227,7 +228,7 @@ void cwmp_remove_event(int code)
 
        list_for_each_entry_safe(n, p, &cwmp->events, list) {
                if (code == n->code) {
-                       config_remove_event(lfc_str_event_code(0, true));
+                       config_remove_event(lfc_str_event_code(code, true));
                        FREE(n->key);
                        list_del(&n->list);
                        FREE(n);
-- 
1.8.1.1


<Prev in Thread] Current Thread [Next in Thread>