Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.2:Test
grip
grip-3.2.0-curl.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File grip-3.2.0-curl.patch of Package grip
--- grip-3.2.0/src/discdb.c +++ grip-3.2.0/src/discdb.c @@ -187,17 +187,17 @@ g_string_sprintf(proxy,"%s:%d",server->proxy->name, server->proxy->port); - curl_easy_setopt(curl_handle,CURLOPT_PROXY,proxy); - - g_string_free(proxy,TRUE); + curl_easy_setopt(curl_handle,CURLOPT_PROXY,proxy->str); + + /* do not free the string, curl keeps a reference */ if(*server->proxy->username) { + user=g_string_new(NULL); g_string_sprintf(user,"%s:%s",server->proxy->username, server->proxy->pswd); - curl_easy_setopt(curl_handle,CURLOPT_PROXYUSERPWD,user); - - g_string_free(user,TRUE); + curl_easy_setopt(curl_handle,CURLOPT_PROXYUSERPWD,user->str); + /* do not free the string, curl keeps a reference */ } }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor