X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=nsapi_shib%2Fnsapi_shib.cpp;h=bbceda74dfaa483045e886c4ec7c7105320a3035;hb=c51bfd77603cf0ddb0b5e374c35586a8435895d6;hp=886d7ccda32fbbf1739b8b64550d15ef3b359883;hpb=96722868d04eaa5cf6cae3227684017b25523f73;p=shibboleth%2Fcpp-sp.git diff --git a/nsapi_shib/nsapi_shib.cpp b/nsapi_shib/nsapi_shib.cpp index 886d7cc..bbceda7 100644 --- a/nsapi_shib/nsapi_shib.cpp +++ b/nsapi_shib/nsapi_shib.cpp @@ -227,7 +227,7 @@ public: Request* m_rq; ShibTargetNSAPI(pblock* pb, ::Session* sn, Request* rq) - : AbstractSPRequest(SHIBSP_LOGCAT".NSAPI"), + : AbstractSPRequest(SHIBSP_LOGCAT ".NSAPI"), m_gotBody(false), m_firsttime(true), m_security_active(false), m_server_portnum(0), m_pb(pb), m_sn(sn), m_rq(rq) { // To determine whether SSL is active or not, we're supposed to rely @@ -427,7 +427,9 @@ public: } void setResponseHeader(const char* name, const char* value) { HTTPResponse::setResponseHeader(name, value); - pblock_nvinsert(name, value, m_rq->srvhdrs); + if (name) { + pblock_nvinsert(name, value, m_rq->srvhdrs); + } } long sendResponse(istream& in, long status) {