From 91cfd21ba94b0ba6b0941fce1b826c8285c4fcdb Mon Sep 17 00:00:00 2001 From: Stefan Fritsch Date: Thu, 18 Nov 2010 20:20:12 +0000 Subject: [PATCH] Fix 'comparison is always false due to limited range of data type'. One-bit flags should really be unsigned git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1036605 13f79535-47bb-0310-9956-ffa450edef68 --- modules/proxy/proxy_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/proxy/proxy_util.c b/modules/proxy/proxy_util.c index 277c7d4155..59ded45de1 100644 --- a/modules/proxy/proxy_util.c +++ b/modules/proxy/proxy_util.c @@ -2538,7 +2538,7 @@ PROXY_DECLARE(int) ap_proxy_connect_backend(const char *proxy_function, "proxy: %s: fam %d socket created to connect to %s", proxy_function, backend_addr->family, worker->hostname); - if (conf->source_address_set == 1) { + if (conf->source_address_set) { local_addr = apr_pcalloc(conn->pool, sizeof(apr_sockaddr_t)); memcpy(local_addr, conf->source_address, sizeof(apr_sockaddr_t)); local_addr->pool = conn->pool; -- 2.40.0