diff options
Diffstat (limited to 'gacopyz/smfi.c')
-rw-r--r-- | gacopyz/smfi.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/gacopyz/smfi.c b/gacopyz/smfi.c index 721b3460..4f8628d4 100644 --- a/gacopyz/smfi.c +++ b/gacopyz/smfi.c | |||
@@ -197,7 +197,7 @@ smfi_quarantine(SMFICTX *ctx, char *reason) | |||
197 | int | 197 | int |
198 | smfi_addrcpt_par(SMFICTX *ctx, char *rcpt, char *args) | 198 | smfi_addrcpt_par(SMFICTX *ctx, char *rcpt, char *args) |
199 | { | 199 | { |
200 | return gacopyz_addrcpt_par(ctx, rcpt, args); | 200 | return gacopyz_add_rcpt_par(ctx, rcpt, args); |
201 | } | 201 | } |
202 | 202 | ||
203 | int | 203 | int |
@@ -209,12 +209,23 @@ smfi_chgfrom(SMFICTX *ctx, char *from, char *args) | |||
209 | int | 209 | int |
210 | smfi_setsymlist(SMFICTX *ctx, int n, char *macros) | 210 | smfi_setsymlist(SMFICTX *ctx, int n, char *macros) |
211 | { | 211 | { |
212 | if (n < 0 || n >= maci_max) | 212 | if (n < 0 || n >= gacopyz_stage_max) |
213 | return MI_FAILURE; | 213 | return MI_FAILURE; |
214 | if (!macros || !*macros || ctx->req_macros[n]) | 214 | if (!macros || !*macros || ctx->req_macros[n]) |
215 | return MI_FAILURE; | 215 | return MI_FAILURE; |
216 | return gacopyz_setsymlist(ctx, n, macros); | 216 | return gacopyz_setsymlist(ctx, n, macros); |
217 | } | 217 | } |
218 | 218 | ||
219 | 219 | int | |
220 | smfi_version(unsigned int *maj, unsigned int *min, unsigned int *pat) | ||
221 | { | ||
222 | if (maj) | ||
223 | *maj = SM_LM_VRS_MAJOR(SMFI_VERSION); | ||
224 | if (min) | ||
225 | *min = SM_LM_VRS_MINOR(SMFI_VERSION); | ||
226 | if (pat) | ||
227 | *pat = SM_LM_VRS_MINOR(SMFI_VERSION); | ||
228 | return MI_SUCCESS; | ||
229 | } | ||
230 | |||
220 | 231 | ||