(hx509_query_alloc): allocate slight more more then a sizeof(pointer)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16820 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1385,7 +1385,7 @@ _hx509_query_clear(hx509_query *q)
|
|||||||
int
|
int
|
||||||
hx509_query_alloc(hx509_context context, hx509_query **q)
|
hx509_query_alloc(hx509_context context, hx509_query **q)
|
||||||
{
|
{
|
||||||
*q = calloc(1, sizeof(*q));
|
*q = calloc(1, sizeof(**q));
|
||||||
if (*q == NULL)
|
if (*q == NULL)
|
||||||
return ENOMEM;
|
return ENOMEM;
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user