static int
xmlSecDecodeCmp(const xmlChar* encoded, const xmlChar* plain) {
+
+ xmlSecAssert2(encoded != NULL, -1);
+ xmlSecAssert2(plain != NULL, -1);
+
while(*plain != NULL) {
if(*encoded == NULL)
return(-1);
int isInProxy = 0;
if(dsigCtx->proxyCtxPtr != NULL) {
xmlChar* refUri = xmlGetProp(cur, xmlSecAttrURI);
+ if(refUri == NULL) {
+ xmlSecError(XMLSEC_ERRORS_HERE,
+ NULL,
+ NULL,
+ XMLSEC_ERRORS_R_INVALID_NODE_ATTRIBUTE,
+ "node=%s",
+ xmlSecErrorsSafeString(xmlSecNodeGetName(cur)));
+ return(-1);
+ }
+
xmlSecError(XMLSEC_ERRORS_HERE,
NULL,
NULL,
refUri);
xmlSecProxyCtxPtr pc = dsigCtx->proxyCtxPtr;
- int uriLen = strlen((const char*)refUri);
while(pc != NULL) {
if(xmlSecDecodeCmp(refUri, pc->cache) == 0) {
isInProxy = 1;