]> git.kaiwu.me - haproxy.git/commitdiff
[BUG] typo in timeout error reporting : report *res and not *err
authorWilly Tarreau <w@1wt.eu>
Fri, 6 Mar 2009 07:05:40 +0000 (08:05 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 8 Mar 2009 22:35:03 +0000 (23:35 +0100)
(cherry picked from commit bb9251ed8fc4e79c40f5b4459d20cecb4428fb1c)
(cherry picked from commit 5c91210297ec91d805211595d40bab0188b62902)

src/proxy.c

index 6219920622189dafd0dc64a7dcf5304e4de15591..078c76cf8015e92c36b9c2cf3e2a7fb3fe00c2ca 100644 (file)
@@ -141,7 +141,7 @@ int proxy_parse_timeout(const char **args, struct proxy *proxy,
 
        res = parse_time_err(args[1], &timeout, TIME_UNIT_MS);
        if (res) {
-               snprintf(err, errlen, "unexpected character '%c' in %s timeout", *err, name);
+               snprintf(err, errlen, "unexpected character '%c' in %s timeout", *res, name);
                return -1;
        }