projects
/
mech_eap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Updated to hostap_2_6
[mech_eap.git]
/
libeap
/
src
/
utils
/
xml_libxml2.c
diff --git
a/libeap/src/utils/xml_libxml2.c
b/libeap/src/utils/xml_libxml2.c
index
c928394
..
7b6d276
100644
(file)
--- a/
libeap/src/utils/xml_libxml2.c
+++ b/
libeap/src/utils/xml_libxml2.c
@@
-212,6
+212,8
@@
char * xml_node_to_str(struct xml_node_ctx *ctx, xml_node_t *node)
xmlDocSetRootElement(doc, n);
xmlDocDumpFormatMemory(doc, &buf, &bufsiz, 0);
xmlFreeDoc(doc);
+ if (!buf)
+ return NULL;
pos = (char *) buf;
if (strncmp(pos, "<?xml", 5) == 0) {
pos = strchr(pos, '>');