From: sungta <tadinhsung@gmail.com>
Date: Wed, 12 Jul 2017 16:35:36 +0700
Subject: [1/8] Update dom.c
Origin: https://github.com/shlomif/perl-XML-LibXML/commit/729cb0f96a4c7c4d5c885f3d699fe587edb30cab
Bug-Debian: https://bugs.debian.org/866676
Bug-Debian-Security: https://security-tracker.debian.org/tracker/CVE-2017-10672
Bug: https://rt.cpan.org/Public/Bug/Display.html?id=122246

---
 dom.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dom.c b/dom.c
index 87eb61d..10eb33d 100644
--- a/dom.c
+++ b/dom.c
@@ -798,7 +798,7 @@ domReplaceChild( xmlNodePtr self, xmlNodePtr new, xmlNodePtr old ) {
         return NULL;
 
     if ( new == old )
-        return new;
+        return NULL;
 
     if ( new == NULL ) {
         /* level2 sais nothing about this case :( */
-- 
2.15.0.rc2

