From f06aed0d8f0829fa17050a46a94bf28794828751 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Thu, 12 Oct 2006 11:10:41 +0200 Subject: [PATCH] More verbose assert messages for invalid h1/h2 in POST buffer --- src/protocol/http/http.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/protocol/http/http.c b/src/protocol/http/http.c index 87d468d8c..8e5ca571d 100644 --- a/src/protocol/http/http.c +++ b/src/protocol/http/http.c @@ -896,11 +896,11 @@ http_send_header(struct socket *socket) int h1, h2; h1 = unhx(post[0]); - assert(h1 >= 0 && h1 < 16); + assertm(h1 >= 0 && h1 < 16, "h1 in the POST buffer is %d (%d/%c)", h1, post[0], post[0]); if_assert_failed h1 = 0; h2 = unhx(post[1]); - assert(h2 >= 0 && h2 < 16); + assertm(h2 >= 0 && h2 < 16, "h2 in the POST buffer is %d (%d/%c)", h2, post[1], post[1]); if_assert_failed h2 = 0; buffer[n++] = (h1<<4) + h2;