[cpp-sp COMMIT] /branches/REL_2_4/isapi_shib/isapi_shib.cpp

noreply at shibboleth.net noreply at shibboleth.net
Wed Nov 2 15:12:45 GMT 2011


Author: scantor
Date: Wed Nov  2 15:12:44 2011
New Revision: 3537

URL: http://svn.shibboleth.net/view/cpp-sp?rev=3537&view=rev
Log:
Add error check for no INSTANCE_ID.

Modified:
    branches/REL_2_4/isapi_shib/isapi_shib.cpp

Modified: branches/REL_2_4/isapi_shib/isapi_shib.cpp
URL: http://svn.shibboleth.net/view/cpp-sp/branches/REL_2_4/isapi_shib/isapi_shib.cpp?rev=3537&r1=3536&r2=3537&view=diff
==============================================================================
--- branches/REL_2_4/isapi_shib/isapi_shib.cpp (original)
+++ branches/REL_2_4/isapi_shib/isapi_shib.cpp Wed Nov  2 15:12:44 2011
@@ -643,6 +643,8 @@
         // Determine web site number. This can't really fail, I don't think.
         dynabuf buf(128);
         GetServerVariable(pfc,"INSTANCE_ID",buf,10);
+        if (buf.empty())
+            return WriteClientError(pfc, "Shibboleth Extension failed to obtain INSTANCE_ID server variable.");
 
         // Match site instance to host name, skip if no match.
         map<string,site_t>::const_iterator map_i=g_Sites.find(static_cast<char*>(buf));



More information about the commits mailing list