--- lmtp2nntp_main.c 2002/03/13 15:32:58 1.51
+++ lmtp2nntp_main.c 2002/03/13 16:22:09 1.52
@@ -122,10 +122,9 @@
l2_channel_t *ch2 = NULL;
if (strchr(fmt, '$') == NULL) {
- if (l2_channel_downstream(ch, &ch2) == L2_OK)
- ch = ch2;
- else
+ if (l2_channel_downstream(ch, &ch2) != L2_OK)
return;
+ ch = ch2;
}
va_start(ap, fmt);
l2_channel_vlog(ch, level, fmt, ap);
@@ -155,7 +154,9 @@
char *cp;
optionval_t *ov;
+ /*FIXME for safety until (l2?) bug causing overlapping output is found
logbook(ctx->l2, L2_LEVEL_DEBUG, "ctx_lookup variable \"%s\" (%d)", var_ptr, var_len);
+ */
rc = VAR_ERR_UNDEFINED_VARIABLE;
if (strncasecmp(var_ptr, "option.", strlen("option.")) == 0) {
@@ -214,12 +215,14 @@
free(cp);
}
+ /*FIXME for safety until (l2?) bug causing overlapping output is found
if (rc == VAR_OK) {
logbook(ctx->l2, L2_LEVEL_DEBUG, "ctx_lookup variable \"%s\" (%d) ok: result is \"%s\" (%d)", var_ptr, var_len, *val_ptr, *val_len);
}
else {
logbook(ctx->l2, L2_LEVEL_DEBUG, "ctx_lookup variable \"%s\" (%d) failed: %s (%d)", var_ptr, var_len, var_strerror(var, rc, &cp) == VAR_OK ? cp : "Unknown Error", rc);
}
+ */
return rc;
}
|