]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: logformat %st is signed
authorWilliam Lallemand <wlallemand@exceliance.fr>
Thu, 22 Mar 2012 10:32:29 +0000 (11:32 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 22 Mar 2012 16:23:23 +0000 (17:23 +0100)
replace ultoa by ltoa for HTTP status code (can be -1)

src/log.c

index e016e330ce75e5f0a2ab056582a7b5f963fee1e9..0b3be3231b829286ea591c218e7010a619c426b9 100644 (file)
--- a/src/log.c
+++ b/src/log.c
@@ -913,7 +913,7 @@ void sess_log(struct session *s)
                                break;
 
                        case LOG_STATUS: // %st
-                               tmplog = ultoa_o(txn->status, tmplog, MAX_SYSLOG_LEN - (tmplog - logline));
+                               tmplog = ltoa_o(txn->status, tmplog, MAX_SYSLOG_LEN - (tmplog - logline));
                                if (!tmplog)
                                        goto out;
                                last_isspace = 0;