From 229c8a8a5bfac0984ecfcacecc768fba6cb16811 Mon Sep 17 00:00:00 2001 From: zribiahmed Date: Mon, 4 Feb 2013 12:41:07 +0000 Subject: [PATCH] --- src/xml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xml.c b/src/xml.c index 71c0293..c2e7a20 100644 --- a/src/xml.c +++ b/src/xml.c @@ -271,7 +271,7 @@ int xml_set_cwmp_id(struct session *session) if (b) { b = mxmlWalkNext(b, session->tree_in, MXML_DESCEND_FIRST); - if (!b || !b->value.text.string) return -1; + if (!b || !b->value.text.string) return 0; c = strdup(b->value.text.string); b = mxmlFindElement(session->tree_out, session->tree_out, "cwmp:ID", NULL, NULL, MXML_DESCEND);