mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-03 06:59:21 +00:00
lib, stream: fix stream sanity checks
Because operator "!" has higher priority than "&&", So we put the "&&" expression in "()" to check both getp and endp. Acked-by: Donald Sharp <sharpd@cumulusnetworks.com> (cherry picked from commit 1ed8ce47b922b71f3b3cdd661e647bbe7ed2eca7)
This commit is contained in:
parent
67e2b6f013
commit
f0b0df1c33
@ -60,7 +60,7 @@
|
||||
|
||||
#define STREAM_VERIFY_SANE(S) \
|
||||
do { \
|
||||
if ( !(GETP_VALID(S, (S)->getp)) && ENDP_VALID(S, (S)->endp) ) \
|
||||
if ( !(GETP_VALID(S, (S)->getp) && ENDP_VALID(S, (S)->endp)) ) \
|
||||
STREAM_WARN_OFFSETS(S); \
|
||||
assert ( GETP_VALID(S, (S)->getp) ); \
|
||||
assert ( ENDP_VALID(S, (S)->endp) ); \
|
||||
|
Loading…
Reference in New Issue
Block a user