[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r29120 - libmicrohttpd/src/testcurl/https
From: |
gnunet |
Subject: |
[GNUnet-SVN] r29120 - libmicrohttpd/src/testcurl/https |
Date: |
Mon, 9 Sep 2013 09:28:33 +0200 |
Author: grothoff
Date: 2013-09-09 09:28:33 +0200 (Mon, 09 Sep 2013)
New Revision: 29120
Modified:
libmicrohttpd/src/testcurl/https/tls_test_common.c
Log:
-allow for 0-termination
Modified: libmicrohttpd/src/testcurl/https/tls_test_common.c
===================================================================
--- libmicrohttpd/src/testcurl/https/tls_test_common.c 2013-09-09 07:25:33 UTC
(rev 29119)
+++ libmicrohttpd/src/testcurl/https/tls_test_common.c 2013-09-09 07:28:33 UTC
(rev 29120)
@@ -393,9 +393,9 @@
const char *err_pos;
gnutls_certificate_allocate_credentials (xcred);
- key->size = strlen (srv_key_pem);
+ key->size = strlen (srv_key_pem) + 1;
key->data = malloc (key->size);
- if (key->data == NULL)
+ if (NULL == key->data)
{
gnutls_certificate_free_credentials (*xcred);
return -1;
@@ -403,7 +403,7 @@
memcpy (key->data, srv_key_pem, key->size);
cert->size = strlen (srv_self_signed_cert_pem) + 1;
cert->data = malloc (cert->size);
- if (cert->data == NULL)
+ if (NULL == cert->data)
{
gnutls_certificate_free_credentials (*xcred);
free (key->data);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r29120 - libmicrohttpd/src/testcurl/https,
gnunet <=