mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-11-21 03:13:05 +08:00
Fix segfault when xpath_list function is applied to an invalid document.
John Gray
This commit is contained in:
parent
84620860d9
commit
0549de06ba
@ -582,7 +582,10 @@ pgxml_result_to_text(xmlXPathObjectPtr res,
|
||||
text *xpres;
|
||||
|
||||
if (res == NULL)
|
||||
{
|
||||
xmlCleanupParser();
|
||||
return NULL;
|
||||
}
|
||||
switch (res->type)
|
||||
{
|
||||
case XPATH_NODESET:
|
||||
|
Loading…
Reference in New Issue
Block a user