]> 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>
Fri, 6 Mar 2009 21:59:44 +0000 (22:59 +0100)
(cherry picked from commit bb9251ed8fc4e79c40f5b4459d20cecb4428fb1c)

src/proxy.c

index 358132995b7b72a65b01b588324b6a41eabf151a..219837c6b06b8e16e301579a307f4bfaac86202b 100644 (file)
@@ -145,7 +145,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;
        }