diff options
Diffstat (limited to 'lasso/saml-2.0/provider.c')
-rw-r--r-- | lasso/saml-2.0/provider.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lasso/saml-2.0/provider.c b/lasso/saml-2.0/provider.c index 97a8dd3e..704b3880 100644 --- a/lasso/saml-2.0/provider.c +++ b/lasso/saml-2.0/provider.c @@ -64,10 +64,10 @@ load_descriptor(xmlNode *xmlnode, GHashTable *descriptor, LassoProvider *provide } if (strcmp((char*)t->name, "KeyDescriptor") == 0) { use = xmlGetProp(t, (xmlChar*)"use"); - if (use && strcmp((char*)use, "signing") == 0) { + if (use == NULL || strcmp((char*)use, "signing") == 0) { provider->private_data->signing_key_descriptor = xmlCopyNode(t, 1); } - if (use && strcmp((char*)use, "encryption") == 0) { + if (use == NULL || strcmp((char*)use, "encryption") == 0) { provider->private_data->encryption_key_descriptor = xmlCopyNode(t, 1); } |