[MINOR] prepare callers of session_set_backend to handle errors

session_set_backend will soon have to allocate areas for HTTP
headers. We must ensure that the callers can handle an allocation
error.
This commit is contained in:
Willy Tarreau
2009-07-12 08:27:39 +02:00
parent 2492d5b4d6
commit bedb9bad67
3 changed files with 24 additions and 5 deletions

View File

@@ -35,7 +35,7 @@ void pause_proxy(struct proxy *p);
void stop_proxy(struct proxy *p);
void pause_proxies(void);
void listen_proxies(void);
void session_set_backend(struct session *s, struct proxy *be);
int session_set_backend(struct session *s, struct proxy *be);
const char *proxy_cap_str(int cap);
const char *proxy_mode_str(int mode);