]> The Tcpdump Group git mirrors - libpcap/blobdiff - rpcapd/daemon.c
rpcapd: make a shift count unsigned.
[libpcap] / rpcapd / daemon.c
index 620dec313d4befe85f9253f2d8a41b0329d05baf..3bcc7337ff824636ec0812f0fe0192178b10a1c1 100644 (file)
@@ -375,7 +375,7 @@ daemon_serviceloop(SOCKET sockctrl, int isactive, char *passiveClients,
                                // 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)