diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ssluse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ssluse.c b/lib/ssluse.c index a55ad3ce1..7ca466663 100644 --- a/lib/ssluse.c +++ b/lib/ssluse.c @@ -2284,7 +2284,7 @@ static CURLcode servercert(struct connectdata *conn, struct SessionHandle *data = conn->data; X509 *issuer; FILE *fp; - char buffer[256]; + char *buffer = data->state.buffer; if(data->set.ssl.certinfo) /* we've been asked to gather certificate info! */ @@ -2301,7 +2301,7 @@ static CURLcode servercert(struct connectdata *conn, infof (data, "Server certificate:\n"); rc = x509_name_oneline(X509_get_subject_name(connssl->server_cert), - buffer, sizeof(buffer)); + buffer, BUFSIZE); if(rc) { if(strict) failf(data, "SSL: couldn't get X509-subject!"); |