libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit eb31c3c9ba26456bef4fede71143ded746dd3049
parent 51e9b51e26b405c1f30a6b4773e7565d9ffed0eb
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sat, 20 Dec 2014 00:54:51 +0000

-check malloc rval

Diffstat:
Msrc/testspdy/test_notls.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/testspdy/test_notls.c b/src/testspdy/test_notls.c @@ -128,6 +128,8 @@ static char* strcopy(const char *s, size_t len) { char *dst; dst = malloc(len+1); + if (NULL == dst) + abort (); memcpy(dst, s, len); dst[len] = '\0'; return dst;