From bfd588fc4793fc22834845eeb172b8e217c80dd1 Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Wed, 28 Jan 2009 20:54:09 +0000 Subject: XRD discovery fix. Added omitted popping of the XRD element out of stack when it ends. Thanks to our usual suspect - Joseph for spotting it ;-) Signed-off-by: Michael Krelin --- diff --git a/lib/discovery.cc b/lib/discovery.cc index f8a3988..26f3eed 100644 --- a/lib/discovery.cc +++ b/lib/discovery.cc @@ -484,6 +484,10 @@ namespace opkele { }else{ xrd->expires = util::w3c_to_time(cdata_buf); } + }else if(is_qelement(n,NSURI_XRD "\tXRD")) { + assert(!pt_stack.empty()); + assert(pt_stack.back()==(NSURI_XRD "\tXRD")); + pt_stack.pop_back(); }else if((xmode&xmode_html) && is_element(n,"head")) { skipping = -1; } -- cgit v0.9.0.2