Code Review
/
ric-plt
/
lib
/
rmr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix SI95 transport header length bug
[ric-plt/lib/rmr.git]
/
src
/
rmr
/
si
/
src
/
sr_si_static.c
diff --git
a/src/rmr/si/src/sr_si_static.c
b/src/rmr/si/src/sr_si_static.c
index
798fe26
..
69e69e9
100644
(file)
--- a/
src/rmr/si/src/sr_si_static.c
+++ b/
src/rmr/si/src/sr_si_static.c
@@
-126,6
+126,7
@@
static inline void insert_mlen( uint32_t len, char* buf ) {
blen++;
*blen = htonl( len ); // new systems want a converted integer
blen++;
*blen = htonl( len ); // new systems want a converted integer
+ memset( &buf[TP_SZFIELD_LEN], 0, 4 ); // clear to prevent future conversion issues
buf[TP_SZFIELD_LEN-1] = TP_SZ_MARKER; // marker to flag this is generated by a new message
}
buf[TP_SZFIELD_LEN-1] = TP_SZ_MARKER; // marker to flag this is generated by a new message
}