mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-10-21 08:07:58 +00:00
Fix conditions for including string.h in error.c
<string.h> is actually needed when MBEDTLS_ERROR_C is enabled and not when only MBEDTLS_ERROR_STRERROR_DUMMY is enabled. Fix #3866. Signed-off-by: Gilles Peskine <[email protected]>
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
Bugfix
|
||||
* Fix conditions for including string.h in error.c. Fixes #3866.
|
||||
+1
-1
@@ -19,7 +19,7 @@
|
||||
|
||||
#include "common.h"
|
||||
|
||||
#if defined(MBEDTLS_ERROR_STRERROR_DUMMY)
|
||||
#if defined(MBEDTLS_ERROR_C)
|
||||
#include <string.h>
|
||||
#endif
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
#include "common.h"
|
||||
|
||||
#if defined(MBEDTLS_ERROR_STRERROR_DUMMY)
|
||||
#if defined(MBEDTLS_ERROR_C)
|
||||
#include <string.h>
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user