correct error code
authorDr. Stephen Henson <steve@openssl.org>
Sun, 22 Apr 2012 13:31:37 +0000 (13:31 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sun, 22 Apr 2012 13:31:37 +0000 (13:31 +0000)
crypto/buffer/buffer.c

index bc803ab6c8f09d6e0b46ac4c5adb194af939d927..40361f966aa230e2832f84c19ac36911709226c9 100644 (file)
@@ -156,7 +156,7 @@ int BUF_MEM_grow_clean(BUF_MEM *str, size_t len)
        /* This limit is sufficient to ensure (len+3)/3*4 < 2**31 */
        if (len > LIMIT_BEFORE_EXPANSION)
                {
-               BUFerr(BUF_F_BUF_MEM_GROW,ERR_R_MALLOC_FAILURE);
+               BUFerr(BUF_F_BUF_MEM_GROW_CLEAN,ERR_R_MALLOC_FAILURE);
                return 0;
                }
        n=(len+3)/3*4;