+10
−9
Loading
If PDU header digest error is detected, it indicates that the length field of the header may have been corrupted. Hence it's may not be possible to identify the location of the beginning of a later PDU. So move checking header digest before handling payload and then close the connection if header digest error is detected. Signed-off-by:Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: I56f6bc082dc0b244e71ad996b4da08e0203f8cdd Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/471014 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com> Reviewed-by:
Changpeng Liu <changpeng.liu@intel.com>