Minor perf improve of NETCONF input read
This commit is contained in:
parent
26ca872b0c
commit
99503ac7fb
1 changed files with 2 additions and 2 deletions
|
|
@ -210,7 +210,7 @@ netconf_input_msg2(unsigned char **bufp,
|
||||||
goto done;
|
goto done;
|
||||||
switch (ret){
|
switch (ret){
|
||||||
case 1: /* chunk-data */
|
case 1: /* chunk-data */
|
||||||
cprintf(cbmsg, "%c", ch);
|
cbuf_append(cbmsg, ch);
|
||||||
break;
|
break;
|
||||||
case 2: /* end-of-data */
|
case 2: /* end-of-data */
|
||||||
/* Somewhat complex error-handling:
|
/* Somewhat complex error-handling:
|
||||||
|
|
@ -223,7 +223,7 @@ netconf_input_msg2(unsigned char **bufp,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
cprintf(cbmsg, "%c", ch);
|
cbuf_append(cbmsg, ch);
|
||||||
if (detect_endtag("]]>]]>", ch, frame_state)){
|
if (detect_endtag("]]>]]>", ch, frame_state)){
|
||||||
*frame_state = 0;
|
*frame_state = 0;
|
||||||
/* OK, we have an xml string from a client */
|
/* OK, we have an xml string from a client */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue