]> granicus.if.org Git - apache/commitdiff
Fix 'comparison is always false due to limited range of data type'.
authorStefan Fritsch <sf@apache.org>
Thu, 18 Nov 2010 20:20:12 +0000 (20:20 +0000)
committerStefan Fritsch <sf@apache.org>
Thu, 18 Nov 2010 20:20:12 +0000 (20:20 +0000)
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

index 277c7d415576ddc269fca5d8bc82b7d4c5b1cd24..59ded45de1e9dbee360399e35b17f41de3471fe3 100644 (file)
@@ -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;