File tree Expand file tree Collapse file tree 1 file changed +22
-18
lines changed Expand file tree Collapse file tree 1 file changed +22
-18
lines changed Original file line number Diff line number Diff line change @@ -14026,29 +14026,33 @@ mlfi_eom(SMFICTX *ctx)
14026
14026
sig , & bodylen ,
14027
14027
& canonlen , NULL );
14028
14028
14029
- if (conf -> conf_sigmintype == SIGMIN_PERCENT )
14029
+ /* In the case body is empty, we don't treat it as partial */
14030
+ if (bodylen )
14030
14031
{
14031
- size_t signpct ;
14032
+ if (conf -> conf_sigmintype == SIGMIN_PERCENT )
14033
+ {
14034
+ size_t signpct ;
14032
14035
14033
- signpct = (100 * canonlen ) / bodylen ;
14036
+ signpct = (100 * canonlen ) / bodylen ;
14034
14037
14035
- if (signpct < conf -> conf_sigmin )
14036
- dfc -> mctx_status = DKIMF_STATUS_PARTIAL ;
14037
- }
14038
- else if (conf -> conf_sigmintype == SIGMIN_MAXADD )
14039
- {
14040
- if (canonlen + conf -> conf_sigmin < bodylen )
14041
- dfc -> mctx_status = DKIMF_STATUS_PARTIAL ;
14042
- }
14043
- else
14044
- {
14045
- size_t required ;
14038
+ if (signpct < conf -> conf_sigmin )
14039
+ dfc -> mctx_status = DKIMF_STATUS_PARTIAL ;
14040
+ }
14041
+ else if (conf -> conf_sigmintype == SIGMIN_MAXADD )
14042
+ {
14043
+ if (canonlen + conf -> conf_sigmin < bodylen )
14044
+ dfc -> mctx_status = DKIMF_STATUS_PARTIAL ;
14045
+ }
14046
+ else
14047
+ {
14048
+ size_t required ;
14046
14049
14047
- required = MIN (conf -> conf_sigmin ,
14048
- bodylen );
14050
+ required = MIN (conf -> conf_sigmin ,
14051
+ bodylen );
14049
14052
14050
- if (canonlen < required )
14051
- dfc -> mctx_status = DKIMF_STATUS_PARTIAL ;
14053
+ if (canonlen < required )
14054
+ dfc -> mctx_status = DKIMF_STATUS_PARTIAL ;
14055
+ }
14052
14056
}
14053
14057
}
14054
14058
}
You can’t perform that action at this time.
0 commit comments