Lines Matching refs:outcurl
837 struct Curl_easy *outcurl = calloc(1, sizeof(struct Curl_easy)); in curl_easy_duphandle() local
838 if(NULL == outcurl) in curl_easy_duphandle()
846 outcurl->set.buffer_size = data->set.buffer_size; in curl_easy_duphandle()
847 outcurl->state.buffer = malloc(outcurl->set.buffer_size + 1); in curl_easy_duphandle()
848 if(!outcurl->state.buffer) in curl_easy_duphandle()
851 outcurl->state.headerbuff = malloc(HEADERSIZE); in curl_easy_duphandle()
852 if(!outcurl->state.headerbuff) in curl_easy_duphandle()
854 outcurl->state.headersize = HEADERSIZE; in curl_easy_duphandle()
857 if(dupset(outcurl, data)) in curl_easy_duphandle()
861 outcurl->state.conn_cache = NULL; in curl_easy_duphandle()
863 outcurl->state.lastconnect = NULL; in curl_easy_duphandle()
865 outcurl->progress.flags = data->progress.flags; in curl_easy_duphandle()
866 outcurl->progress.callback = data->progress.callback; in curl_easy_duphandle()
871 outcurl->cookies = Curl_cookie_init(data, in curl_easy_duphandle()
873 outcurl->cookies, in curl_easy_duphandle()
875 if(!outcurl->cookies) in curl_easy_duphandle()
881 outcurl->change.cookielist = in curl_easy_duphandle()
883 if(!outcurl->change.cookielist) in curl_easy_duphandle()
888 outcurl->change.url = strdup(data->change.url); in curl_easy_duphandle()
889 if(!outcurl->change.url) in curl_easy_duphandle()
891 outcurl->change.url_alloc = TRUE; in curl_easy_duphandle()
895 outcurl->change.referer = strdup(data->change.referer); in curl_easy_duphandle()
896 if(!outcurl->change.referer) in curl_easy_duphandle()
898 outcurl->change.referer_alloc = TRUE; in curl_easy_duphandle()
903 if(outcurl->set.str[STRING_SSL_ENGINE]) { in curl_easy_duphandle()
904 if(Curl_ssl_set_engine(outcurl, outcurl->set.str[STRING_SSL_ENGINE])) in curl_easy_duphandle()
909 if(Curl_resolver_duphandle(outcurl, in curl_easy_duphandle()
910 &outcurl->state.resolver, in curl_easy_duphandle()
914 Curl_convert_setup(outcurl); in curl_easy_duphandle()
916 Curl_initinfo(outcurl); in curl_easy_duphandle()
918 outcurl->magic = CURLEASY_MAGIC_NUMBER; in curl_easy_duphandle()
922 return outcurl; in curl_easy_duphandle()
926 if(outcurl) { in curl_easy_duphandle()
927 curl_slist_free_all(outcurl->change.cookielist); in curl_easy_duphandle()
928 outcurl->change.cookielist = NULL; in curl_easy_duphandle()
929 Curl_safefree(outcurl->state.buffer); in curl_easy_duphandle()
930 Curl_safefree(outcurl->state.headerbuff); in curl_easy_duphandle()
931 Curl_safefree(outcurl->change.url); in curl_easy_duphandle()
932 Curl_safefree(outcurl->change.referer); in curl_easy_duphandle()
933 Curl_freeset(outcurl); in curl_easy_duphandle()
934 free(outcurl); in curl_easy_duphandle()