aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2009-02-17 12:18:34 +0000
committerDaniel Stenberg <daniel@haxx.se>2009-02-17 12:18:34 +0000
commita24fe59ee46316b3fd7de937f2845dfe7ae530c1 (patch)
tree2a4f9b6a2ce6514d31ea447868f7426f942231a2 /lib
parent4ad296c60b1188e21e861e800a84eee32f986a9e (diff)
- Kamil Dudka made NSS-powered builds compile and run again!
Diffstat (limited to 'lib')
-rw-r--r--lib/nss.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/nss.c b/lib/nss.c
index 98ed31149..83ad6ebbc 100644
--- a/lib/nss.c
+++ b/lib/nss.c
@@ -1140,7 +1140,7 @@ CURLcode Curl_nss_connect(struct connectdata *conn, int sockindex)
n = strrchr(data->set.str[STRING_CERT], '/');
if(n) {
n++; /* skip last slash */
- nickname = aprintf(nickname, "PEM Token #%d:%s", 1, n);
+ nickname = aprintf("PEM Token #%d:%s", 1, n);
if(!nickname)
return CURLE_OUT_OF_MEMORY;
@@ -1171,7 +1171,8 @@ CURLcode Curl_nss_connect(struct connectdata *conn, int sockindex)
if(SSL_GetClientAuthDataHook(model,
(SSLGetClientAuthData) SelectClientCert,
- (void *)connssl) != SECSuccess) {
+ (void *)connssl->client_nickname) !=
+ SECSuccess) {
curlerr = CURLE_SSL_CERTPROBLEM;
goto error;
}