File grip-3.2.0-curl.patch of Package grip
--- grip-3.2.0/src/discdb.c.xx 2004-09-14 15:47:32.000000000 +0200
+++ grip-3.2.0/src/discdb.c 2004-09-14 17:20:06.049373867 +0200
@@ -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 */
}
}