From 6d231d5f159703bb13a2505e6de6c820a3ca05bc Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Tue, 24 Jul 2007 14:53:23 +0000 Subject: removed F_UNUSED and cleaned up action-disabling handling --- omfwd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'omfwd.c') diff --git a/omfwd.c b/omfwd.c index 54811432..b9197e92 100644 --- a/omfwd.c +++ b/omfwd.c @@ -81,6 +81,7 @@ static rsRetVal doActionFwd(selector_t *f) { char *psz; /* temporary buffering */ register unsigned l; + rsRetVal iRet = RS_RET_OK; int i; unsigned e, lsent = 0; int bSendSuccess; @@ -132,7 +133,7 @@ static rsRetVal doActionFwd(selector_t *f) dprintf("Retries: %d\n", f->f_prevcount); if ( --f->f_prevcount < 0 ) { dprintf("Giving up.\n"); - f->f_type = F_UNUSED; + iRet = RS_RET_DISABLE_ACTION; } else dprintf("Left retries: %d\n", f->f_prevcount); @@ -248,7 +249,7 @@ static rsRetVal doActionFwd(selector_t *f) } break; } - return RS_RET_OK; + return iRet; } -- cgit