SilcUInt32 paddedlen, mac_len, block_len, ivlen, psnlen;
unsigned char tmp[SILC_PACKET_MIN_HEADER_LEN], *header;
unsigned char iv[SILC_CIPHER_MAX_IV_SIZE], *packet_seq = NULL;
- SilcBool normal = TRUE;
+ SilcBool normal;
int ret;
/* Parse the packets from the data */
ivlen = psnlen = 0;
cipher = stream->receive_key[0];
hmac = stream->receive_hmac[0];
+ normal = FALSE;
if (silc_buffer_len(&stream->inbuf) <
(stream->iv_included ? SILC_PACKET_MIN_HEADER_LEN_IV :
silc_buffer_reset(&stream->inbuf);
return;
}
+ packet->stream = stream;
/* Allocate more space to packet buffer, if needed */
if (silc_buffer_truelen(&packet->buffer) < paddedlen) {
silc_buffer_pull(&stream->inbuf, paddedlen + mac_len);
/* Dispatch the packet to application */
- packet->stream = stream;
silc_packet_dispatch(packet);
}