[PATCH] use backends only with use_backend directive
authorKrzysztof Oledzki <ole@ans.pl>
Wed, 31 Oct 2007 08:07:24 +0000 (09:07 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 1 Nov 2007 22:00:46 +0000 (23:00 +0100)
commit0259419f41fededcee0b6a61f8aab94bc9609b80
treed5375dd2c50bb6e684a8de66400eded0193475cc
parent106bf274c4e6dfea3ea1895a19ebf0a0ab16c771
[PATCH] use backends only with use_backend directive

Hello,

As it is possible to use the same name for two proxies, make sure that
use_backed & friends does not match wrong proxy when used with use_backend/
default_backend/setbe. For example, without this patch, when there is a
backend and frontend with the same name (first backend and then frontend
trying to use specific backend), the application will likely try to use
frontend instead of backend, complaining loudly about a loop.

Best regards,

                                 Krzysztof Oledzki
src/cfgparse.c