]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: silence signedness warning in acl.c
authorWilly Tarreau <w@1wt.eu>
Sat, 10 Mar 2012 08:05:30 +0000 (09:05 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 10 Mar 2012 08:05:30 +0000 (09:05 +0100)
The recent SNI patch introduced a trivial warning in acl.c.

src/acl.c

index 9a20cc25f9462a07cab0add71349fb9f102f5771..6d4eed3d73333f2fe1bc3d2702634be882575c66 100644 (file)
--- a/src/acl.c
+++ b/src/acl.c
@@ -423,12 +423,9 @@ acl_fetch_ssl_hello_sni(struct proxy *px, struct session *l4, void *l7, int dir,
                        name_len = (data[7] << 8) + data[8];
 
                        if (name_type == 0) { /* hostname */
-                               temp_pattern.data.str.str = data + 9;
+                               temp_pattern.data.str.str = (char *)data + 9;
                                temp_pattern.data.str.len = name_len;
                                test->flags = ACL_TEST_F_VOLATILE;
-                               //fprintf(stderr, "found SNI : <");
-                               //write(2, test->ptr, test->len);
-                               //fprintf(stderr, ">\n");
                                return 1;
                        }
                }