diff options
author | Valery Febvre <vfebvre at easter-eggs.com> | 2004-08-11 21:55:16 +0000 |
---|---|---|
committer | Valery Febvre <vfebvre at easter-eggs.com> | 2004-08-11 21:55:16 +0000 |
commit | 02677987a48a67d99f5aacd915119a658dacd42a (patch) | |
tree | 75c7af545d80f664ae797c767c0c5b88a8ab49bc /lasso/Attic | |
parent | 42dc0f499eb3a2fdc6305b6666664d9b3e96116d (diff) | |
download | lasso-02677987a48a67d99f5aacd915119a658dacd42a.tar.gz lasso-02677987a48a67d99f5aacd915119a658dacd42a.tar.xz lasso-02677987a48a67d99f5aacd915119a658dacd42a.zip |
Fixed a bug in lasso_provider_get_providerID
Diffstat (limited to 'lasso/Attic')
-rw-r--r-- | lasso/Attic/protocols/provider.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lasso/Attic/protocols/provider.c b/lasso/Attic/protocols/provider.c index 9020533c..ef6fecca 100644 --- a/lasso/Attic/protocols/provider.c +++ b/lasso/Attic/protocols/provider.c @@ -278,7 +278,13 @@ lasso_provider_get_providerID(LassoProvider *provider) GError *err = NULL; descriptor = lasso_node_get_child(provider->metadata, - "EntityDescriptor", NULL, NULL); + "EntityDescriptor", NULL, &err); + if (descriptor == NULL) { + message(G_LOG_LEVEL_CRITICAL, err->message); + g_error_free(err); + return (NULL); + } + value = lasso_node_get_attr_value(descriptor, "providerID", &err); lasso_node_destroy(descriptor); |