summaryrefslogtreecommitdiffstats
path: root/lasso/id-ff/name_registration.c
diff options
context:
space:
mode:
authorFrederic Peters <fpeters@entrouvert.com>2005-01-12 14:12:47 +0000
committerFrederic Peters <fpeters@entrouvert.com>2005-01-12 14:12:47 +0000
commit5508882f0970269308da4a7ad22d3066b1a09842 (patch)
tree94b8c9e4a536f7c650acab50e27b1888baec42db /lasso/id-ff/name_registration.c
parent5f43d885271f034bb6b538c01173a75a0201d503 (diff)
downloadlasso-5508882f0970269308da4a7ad22d3066b1a09842.tar.gz
lasso-5508882f0970269308da4a7ad22d3066b1a09842.tar.xz
lasso-5508882f0970269308da4a7ad22d3066b1a09842.zip
no longer allows NULL to get the first known remote provider id
Diffstat (limited to 'lasso/id-ff/name_registration.c')
-rw-r--r--lasso/id-ff/name_registration.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lasso/id-ff/name_registration.c b/lasso/id-ff/name_registration.c
index e6058d2f..1411f316 100644
--- a/lasso/id-ff/name_registration.c
+++ b/lasso/id-ff/name_registration.c
@@ -177,6 +177,7 @@ lasso_name_registration_init_request(LassoNameRegistration *name_registration,
LassoSamlNameIdentifier *spNameIdentifier, *idpNameIdentifier, *oldNameIdentifier = NULL;
g_return_val_if_fail(LASSO_IS_NAME_REGISTRATION(name_registration), -1);
+ g_return_val_if_fail(remote_providerID != NULL, LASSO_PARAM_ERROR_BAD_TYPE_OR_NULL_OBJ);
profile = LASSO_PROFILE(name_registration);
@@ -186,9 +187,6 @@ lasso_name_registration_init_request(LassoNameRegistration *name_registration,
}
/* set the remote provider id */
- if (remote_providerID == NULL)
- g_assert_not_reached(); /* was default; didn't make sense */
-
profile->remote_providerID = g_strdup(remote_providerID);
remote_provider = g_hash_table_lookup(profile->server->providers,