From c1453ec43f5ce5aba1e89d37af07817bb0b4f8a0 Mon Sep 17 00:00:00 2001 From: Frederic Peters Date: Fri, 26 Aug 2005 12:04:55 +0000 Subject: check the query response is of the correct type --- lasso/id-wsf/data_service.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lasso/id-wsf/data_service.c b/lasso/id-wsf/data_service.c index cf22084e..47d17ac3 100644 --- a/lasso/id-wsf/data_service.c +++ b/lasso/id-wsf/data_service.c @@ -438,8 +438,11 @@ lasso_data_service_process_query_response_msg(LassoDataService *service, const c rc = lasso_wsf_profile_process_soap_response_msg(LASSO_WSF_PROFILE(service), message); if (rc) return rc; + if (! LASSO_IS_DST_QUERY_RESPONSE(LASSO_WSF_PROFILE(service)->response)) + return LASSO_ERROR_UNDEFINED; + response = LASSO_DST_QUERY_RESPONSE(LASSO_WSF_PROFILE(service)->response); - if (strcmp(response->Status->code, "OK") != 0) + if (response->Status == NULL || strcmp(response->Status->code, "OK") != 0) return LASSO_ERROR_UNDEFINED; return 0; -- cgit