HA_SPIN_LOCK(SFT_LOCK, &sft->lock);
if (appctx != sft->appctx) {
+ /* FIXME: is this even supposed to happen? */
HA_SPIN_UNLOCK(SFT_LOCK, &sft->lock);
goto close;
}
s->uniq_id = 0;
applet_expect_no_data(appctx);
+
+ /* FIXME: redundant? was already assigned in process_sink_forward() */
sft->appctx = appctx;
HA_SPIN_UNLOCK(SFT_LOCK, &sft->lock);
HA_SPIN_LOCK(SFT_LOCK, &sft->lock);
if (sft->appctx == appctx)
__sink_forward_session_deinit(sft);
+ /* FIXME: is 'sft->appctx != appctx' even supposed to happen? */
HA_SPIN_UNLOCK(SFT_LOCK, &sft->lock);
}