summaryrefslogtreecommitdiff
path: root/lib/stream.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/stream.h')
-rw-r--r--lib/stream.h2
1 files changed, 1 insertions, 1 deletions
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)