if (http->authstring && http->authstring != http->_authstring)
free(http->authstring);
+ _httpFreeCredentials(http->tls_credentials);
+
free(http);
}
http_t *http; // New HTTP connection
char service[255]; // Service name
http_addrlist_t *myaddrlist = NULL; // My address list
+ _cups_globals_t *cg = _cupsGlobals(); // Thread global data
DEBUG_printf("4http_create(host=\"%s\", port=%d, addrlist=%p, family=%d, encryption=%d, blocking=%d, mode=%d)", host, port, (void *)addrlist, family, encryption, blocking, mode);
http_set_wait(http);
+ // Set client credentials...
+ http->tls_credentials = _httpUseCredentials(cg->credentials);
+
// Return the new structure...
return (http);
}