From e39914556c10a64bf415460afe77a18737203fd1 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 17 May 2013 14:59:01 +0200 Subject: [PATCH] Fix signed/unsigned checksum problem PAZ-871 --- src/http_command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http_command.c b/src/http_command.c index 004abba..deed733 100644 --- a/src/http_command.c +++ b/src/http_command.c @@ -1009,7 +1009,7 @@ static void show_record(struct http_channel *c, struct http_session *s) if (checksumstr) { - long v = atol(checksumstr); + unsigned v = strtoul(checksumstr, 0, 10); for (i = 0; r; r = r->next) if (v == r->checksum) break; -- 1.7.10.4