summaryrefslogtreecommitdiffabout
path: root/lib
authorMichael Krelin <hacker@klever.net>2009-01-28 20:54:09 (UTC)
committer Michael Krelin <hacker@klever.net>2009-01-28 20:56:27 (UTC)
commitbfd588fc4793fc22834845eeb172b8e217c80dd1 (patch) (unidiff)
treeef484f6175c38c50f413e23e79fb5eca47544062 /lib
parent485a0816b78fcf53a717e8e7cbeabee0b83091e7 (diff)
downloadlibopkele-bfd588fc4793fc22834845eeb172b8e217c80dd1.zip
libopkele-bfd588fc4793fc22834845eeb172b8e217c80dd1.tar.gz
libopkele-bfd588fc4793fc22834845eeb172b8e217c80dd1.tar.bz2
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 <hacker@klever.net>
Diffstat (limited to 'lib') (more/less context) (show whitespace changes)
-rw-r--r--lib/discovery.cc4
1 files changed, 4 insertions, 0 deletions
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 {
484 }else{ 484 }else{
485 xrd->expires = util::w3c_to_time(cdata_buf); 485 xrd->expires = util::w3c_to_time(cdata_buf);
486 } 486 }
487 }else if(is_qelement(n,NSURI_XRD "\tXRD")) {
488 assert(!pt_stack.empty());
489 assert(pt_stack.back()==(NSURI_XRD "\tXRD"));
490 pt_stack.pop_back();
487 }else if((xmode&xmode_html) && is_element(n,"head")) { 491 }else if((xmode&xmode_html) && is_element(n,"head")) {
488 skipping = -1; 492 skipping = -1;
489 } 493 }