summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/shared/dlt_common.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/shared/dlt_common.c b/src/shared/dlt_common.c
index 4ae0924..e046cc4 100644
--- a/src/shared/dlt_common.c
+++ b/src/shared/dlt_common.c
@@ -2643,13 +2643,11 @@ int dlt_buffer_get(DltBuffer *buf, unsigned char *data, int max_size, int delete
}
/* third check size */
- if (max_size && (head.size > max_size)) {
+ if (max_size && (head.size > max_size))
dlt_vlog(LOG_WARNING,
"%s: Buffer: Max size is smaller than read header size. Max size: %d\n",
__func__, max_size);
- /* prevent buffer overflow on dlt_buffer_read_block */
- return DLT_RETURN_ERROR; /* ERROR */
- }
+ /* nothing to do but data does not fit provided buffer */
if ((data != NULL) && max_size) {