+Sat Sep 30 16:57:42 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
+
+ * Removed the function just added to lib/silcutil/silcschedule.[ch].
+
+ * Cras fixed and optimized the packet handling even further and
+ it should work now. Minor change to the prototype of function
+ silc_packet_receive_process in lib/silccore/silcpacket.[ch].
+
Sat Sep 30 08:48:47 EEST 2000 Pekka Riikonen <priikone@poseidon.pspt.fi>
* Added new function into lib/silcutil/silcschedule.[ch]:
;;
esac
-AM_INIT_AUTOMAKE(silc, 29092000)
+AM_INIT_AUTOMAKE(silc, 30092000)
AC_PREREQ(2.3)
AM_CONFIG_HEADER(includes/silcdefs.h)
SilcPacketParserContext *parse_ctx;
int packetlen, paddedlen, count, mac_len = 0;
+ /* We need at least 2 bytes of data to be able to start processing
+ the packet. */
+ if (sock->inbuf->len < 2)
+ return;
+
if (hmac)
mac_len = hmac->hash->hash->hash_len;
/* Parse the packets from the data */
count = 0;
- while (sock->inbuf->len > 2) {
+ while (sock->inbuf->len > 0) {
SILC_PACKET_LENGTH(sock->inbuf, packetlen, paddedlen);
paddedlen += 2;
count++;