Commit ab83c1a8 authored by johan's avatar johan

Mask one bit only (the MSG) at LIME session Index generation

parent 71d933e5
......@@ -524,7 +524,7 @@ int bzrtp_addCustomDataInCache(bzrtpContext_t *zrtpContext, uint8_t peerZID[12],
/* if derivedDataLength is 4 it means we are writing the session Index, mask the first bit of first byte(MSB) to 0 in order to avoid any counter loop */
if (derivedDataLength == 4) {
derivedContent[0] &=0x8F;
derivedContent[0] &=0x7F;
}
/* write it to cache, do not allow multiple tags */
return bzrtp_writePeerNode(zrtpContext, peerZID, tagName, tagNameLength, derivedContent, derivedDataLength, BZRTP_CACHE_TAGISBYTE|BZRTP_CACHE_NOMULTIPLETAGS, fileFlag);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment