|
@@ -98,6 +98,10 @@ _comms_process_session(struct comms_state *cs, struct comms_session *sess, struc |
|
|
|
|
|
|
|
|
strobe_attach_buffer(&sess->cs_crypto, pbin.pkt, pbin.pktlen); |
|
|
strobe_attach_buffer(&sess->cs_crypto, pbin.pkt, pbin.pktlen); |
|
|
|
|
|
|
|
|
|
|
|
/* if the packet is too short, ignore */ |
|
|
|
|
|
if (pbin.pktlen < MAC_LEN) |
|
|
|
|
|
goto badmsg; |
|
|
|
|
|
|
|
|
cnt = strobe_get(&sess->cs_crypto, APP_CIPHERTEXT, buf, pbin.pktlen - |
|
|
cnt = strobe_get(&sess->cs_crypto, APP_CIPHERTEXT, buf, pbin.pktlen - |
|
|
MAC_LEN); |
|
|
MAC_LEN); |
|
|
msglen = cnt; |
|
|
msglen = cnt; |
|
|