FreeBSD Bugzilla – Attachment 144769 Details for
Bug 191871
comms/trustedqsl trustedqsl-2.0.2 crashes on 10.0-STABLE
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for openssl_cert.cpp to fix tqsl crash
patch-src_openssl_cert.cpp (text/plain), 1.21 KB, created by
Kenji Rikitake
on 2014-07-18 02:46:05 UTC
(
hide
)
Description:
Patch for openssl_cert.cpp to fix tqsl crash
Filename:
MIME Type:
Creator:
Kenji Rikitake
Created:
2014-07-18 02:46:05 UTC
Size:
1.21 KB
patch
obsolete
>--- src/openssl_cert.cpp.orig 2014-07-12 13:18:13.000000000 -0700 >+++ src/openssl_cert.cpp 2014-07-17 16:36:04.000000000 -0700 >@@ -4214,28 +4214,28 @@ > for (ep = ellist.find("Cert"); ep != ellist.end(); ep++) { > if (ep->first != "Cert") > break; >- pair<string, bool> rval = ep->second.getAttribute("serial"); >+ pair<string, bool> rval = ep->second.get()->getAttribute("serial"); > if (rval.second && strtol(rval.first.c_str(), NULL, 10) == serial) { > exists = true; > break; > } > } > >- XMLElement cs("Cert"); >- cs.setPretext("\n "); >- XMLElement se; >- se.setPretext(cs.getPretext() + " "); >- se.setElementName("status"); >- se.setText(status); >- cs.addElement(se); >+ shared_ptr<XMLElement> cs_p = make_shared<XMLElement>("Cert"); >+ cs_p->setPretext("\n "); >+ shared_ptr<XMLElement> se_p(new XMLElement); >+ se_p->setPretext(cs_p->getPretext() + " "); >+ se_p->setElementName("status"); >+ se_p->setText(status); >+ cs_p->addElement(se_p); > >- cs.setAttribute("serial", sstr); >- cs.setText("\n "); >+ cs_p->setAttribute("serial", sstr); >+ cs_p->setText("\n "); > > if (exists) > ellist.erase(ep); > >- sfile.addElement(cs); >+ sfile.addElement(cs_p); > sfile.setText("\n"); > return tqsl_dump_cert_status_data(sfile); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 191871
:
144677
|
144678
|
144737
|
144738
|
144750
|
144752
|
144763
|
144764
|
144768
| 144769 |
144778
|
144784