diff options
author | Yang Tse <yangsita@gmail.com> | 2006-09-08 05:18:07 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2006-09-08 05:18:07 +0000 |
commit | dc7c9155531195d8f346e52d753a857891460793 (patch) | |
tree | 845ac25368234cfdd071dad3766f0b20cd5db86b /lib/ldap.c | |
parent | b7eeb6e67fca686f840eacd6b8394edb58b07482 (diff) | |
download | curl-dc7c9155531195d8f346e52d753a857891460793.tar.gz |
Compilation fix
Diffstat (limited to 'lib/ldap.c')
-rw-r--r-- | lib/ldap.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/ldap.c b/lib/ldap.c index 1df76f4d3..cad5f7fe6 100644 --- a/lib/ldap.c +++ b/lib/ldap.c @@ -551,7 +551,10 @@ static int _ldap_url_parse2 (const struct connectdata *conn, LDAPURLDesc *ludp) char *p, *q; int i; - if (!conn->path || conn->path[0] != '/' || + if (!conn->data || + !conn->data->reqdata || + !conn->data->reqdata->path || + conn->data->reqdata->path[0] != '/' || !checkprefix(conn->protostr, conn->data->change.url)) return LDAP_INVALID_SYNTAX; |