fix warning

Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
This commit is contained in:
Dr. Stephen Henson 2016-01-29 15:12:16 +00:00
parent 7ab507495b
commit bc9d9ce27a

View file

@ -169,6 +169,8 @@ static unsigned char* unescape(const char *input, size_t input_len,
static int test_bin(const char *value, unsigned char **buf, size_t *buflen)
{
long len;
*buflen = 0;
if (!*value) {
/*
* Don't return NULL for zero length buffer.