1
0
mirror of https://github.com/moparisthebest/curl synced 2025-03-11 07:39:50 -04:00

reqdata doesn't exist anymore and the path moved to the UrlState struct

This commit is contained in:
Daniel Stenberg 2007-11-24 23:18:21 +00:00
parent 13648f8ccd
commit 162c039e9d
3 changed files with 5 additions and 9 deletions

View File

@ -555,7 +555,7 @@ static bool unescape_elements (void *data, LDAPURLDesc *ludp)
* *
* <hostname> already known from 'conn->host.name'. * <hostname> already known from 'conn->host.name'.
* <port> already known from 'conn->remote_port'. * <port> already known from 'conn->remote_port'.
* extract the rest from 'conn->data->reqdata.path+1'. All fields are optional. * extract the rest from 'conn->data->state.path+1'. All fields are optional.
* e.g. * e.g.
* ldap://<hostname>:<port>/?<attributes>?<scope>?<filter> * ldap://<hostname>:<port>/?<attributes>?<scope>?<filter>
* yields ludp->lud_dn = "". * yields ludp->lud_dn = "".
@ -568,8 +568,8 @@ static int _ldap_url_parse2 (const struct connectdata *conn, LDAPURLDesc *ludp)
int i; int i;
if(!conn->data || if(!conn->data ||
!conn->data->reqdata.path || !conn->data->state.path ||
conn->data->reqdata.path[0] != '/' || conn->data->state.path[0] != '/' ||
!checkprefix(conn->protostr, conn->data->change.url)) !checkprefix(conn->protostr, conn->data->change.url))
return LDAP_INVALID_SYNTAX; return LDAP_INVALID_SYNTAX;
@ -579,7 +579,7 @@ static int _ldap_url_parse2 (const struct connectdata *conn, LDAPURLDesc *ludp)
/* parse DN (Distinguished Name). /* parse DN (Distinguished Name).
*/ */
ludp->lud_dn = strdup(conn->data->reqdata.path+1); ludp->lud_dn = strdup(conn->data->state.path+1);
if(!ludp->lud_dn) if(!ludp->lud_dn)
return LDAP_NO_MEMORY; return LDAP_NO_MEMORY;

View File

@ -676,10 +676,6 @@ static CURLcode Curl_tftp_done(struct connectdata *conn, CURLcode status,
(void)status; /* unused */ (void)status; /* unused */
(void)premature; /* not used */ (void)premature; /* not used */
#if 0
free(conn->data->reqdata.proto.tftp);
conn->data->reqdata.proto.tftp = NULL;
#endif
Curl_pgrsDone(conn); Curl_pgrsDone(conn);
return CURLE_OK; return CURLE_OK;

View File

@ -2249,7 +2249,7 @@ static void Curl_printPipeline(struct curl_llist *pipeline)
curr = pipeline->head; curr = pipeline->head;
while(curr) { while(curr) {
struct SessionHandle *data = (struct SessionHandle *) curr->ptr; struct SessionHandle *data = (struct SessionHandle *) curr->ptr;
infof(data, "Handle in pipeline: %s\n", data->reqdata.path); infof(data, "Handle in pipeline: %s\n", data->state.path);
curr = curr->next; curr = curr->next;
} }
} }