That should prevent compilers and, more important, static analyzers (I'm
looking at *you*, Coverity!) from saying "this converts the unsigned
char to an int, which somehow taints it, so I get to use my favorite
meaningless word "tainted" in a warning".
(What does "tainted" mean to Coverity, anyway? ZOMG UR READING NUMBERZ
FROM AN EXTERNAL SOURCE!!!!!!!!1111ONE!!!!!!!!!?)
(cherry picked from commit
b1f9b176115eae9235ac4fd48aa0da9c61f46e67)
// Immediate EOF
goto end;
}
- plen = (tls_header.length_hi << 8) | tls_header.length_lo;
+ plen = (tls_header.length_hi << 8U) | tls_header.length_lo;
// Discard the rest of the message.
if (rpcapd_discard(sockctrl, NULL, plen) == -1)