diff options
| author | Frederic Peters <fpeters@entrouvert.com> | 2005-02-11 11:23:43 +0000 |
|---|---|---|
| committer | Frederic Peters <fpeters@entrouvert.com> | 2005-02-11 11:23:43 +0000 |
| commit | f40c157238e62e60d26dcf26c4c94979a0c4f0ff (patch) | |
| tree | d2b09d0b350eeee8390a0029e6a7736a020483cc | |
| parent | 11ecd3d362d029b8b2c0920d31895057d5e5135f (diff) | |
| download | lasso-f40c157238e62e60d26dcf26c4c94979a0c4f0ff.tar.gz lasso-f40c157238e62e60d26dcf26c4c94979a0c4f0ff.tar.xz lasso-f40c157238e62e60d26dcf26c4c94979a0c4f0ff.zip | |
check param for NULL
| -rw-r--r-- | lasso/id-ff/profile.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lasso/id-ff/profile.c b/lasso/id-ff/profile.c index a9185f7e..342dcf64 100644 --- a/lasso/id-ff/profile.c +++ b/lasso/id-ff/profile.c @@ -109,6 +109,9 @@ lasso_profile_get_request_type_from_soap_msg(const gchar *soap) const char *name = NULL; xmlNs *ns = NULL; + if (soap == NULL) + return LASSO_REQUEST_TYPE_INVALID; + doc = xmlParseMemory(soap, strlen(soap)); xpathCtx = xmlXPathNewContext(doc); xmlXPathRegisterNs(xpathCtx, "s", LASSO_SOAP_ENV_HREF); |
