projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6db14db
)
For portability use BUF_strndup instead of strndup.
author
Dr. Stephen Henson
<steve@openssl.org>
Tue, 20 May 2014 10:18:30 +0000
(11:18 +0100)
committer
Dr. Stephen Henson
<steve@openssl.org>
Tue, 20 May 2014 10:18:30 +0000
(11:18 +0100)
ssl/heartbeat_test.c
patch
|
blob
|
history
diff --git
a/ssl/heartbeat_test.c
b/ssl/heartbeat_test.c
index 049c1de1b346132e19e51ea7d8ad2d007b137af6..a525d17f34065109b9e73d8110cbb424414e2f0d 100644
(file)
--- a/
ssl/heartbeat_test.c
+++ b/
ssl/heartbeat_test.c
@@
-236,7
+236,7
@@
static int execute_heartbeat(HEARTBEAT_TEST_FIXTURE fixture)
}
else
{
- char* actual_payload = strndup((const char*)p, actual_payload_len);
+ char* actual_payload =
BUF_
strndup((const char*)p, actual_payload_len);
if (strcmp(actual_payload, fixture.expected_return_payload) != 0)
{
printf("%s failed:\n expected payload: \"%s\"\n received: \"%s\"\n",
@@
-244,7
+244,7
@@
static int execute_heartbeat(HEARTBEAT_TEST_FIXTURE fixture)
actual_payload);
result = 1;
}
- free(actual_payload);
+
OPENSSL_
free(actual_payload);
}
if (result != 0)