Deal with BUF_MEM_grow ambiguity
authorRichard Levitte <levitte@openssl.org>
Fri, 30 Aug 2019 14:54:47 +0000 (16:54 +0200)
committerPauli <paul.dale@oracle.com>
Fri, 6 Sep 2019 09:27:57 +0000 (19:27 +1000)
commit53598b22987faead115463bf8bd027cd8f794cf3
tree1431b397cc4de4cac2b54879afc2764b08caa764
parentea643c959f626fd3860b8aa49b42fd0b96e71492
Deal with BUF_MEM_grow ambiguity

BUF_MEM_grow() returns the passed length, but also zero on error.  If
the passed length was zero, an extra check to see if a returned zero
was an error or not is needed.

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/9662)
crypto/evp/pkey_kdf.c