From 741b1c4f106588c24242f60a618bdf8ed78d8e88 Mon Sep 17 00:00:00 2001 From: Emanuele Di Pascale Date: Mon, 22 Jun 2020 19:02:56 +0200 Subject: [PATCH] lib: fix STREAM_GETF macro a missing '!' operator was making any STREAM_GETF fail when in fact it should have succeeded. As a consequence of this, for example, many link-params of an interface were not being read and populated. Signed-off-by: Emanuele Di Pascale --- lib/stream.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/stream.h b/lib/stream.h index 7cacf57d27..245f35db51 100644 --- a/lib/stream.h +++ b/lib/stream.h @@ -426,7 +426,7 @@ static inline const uint8_t *ptr_get_be32(const uint8_t *ptr, uint32_t *out) float r; \ uint32_t d; \ } _pval; \ - if (stream_getl2((S), &_pval.d)) \ + if (!stream_getl2((S), &_pval.d)) \ goto stream_failure; \ (P) = _pval.r; \ } while (0)