A new user interface for you! Read more...

File nginx_upstream_check.patch of Package dba-nginx-180-stream

--- nginx_upstream_check/ngx_http_upstream_check_module.c.orig	2014-11-19 03:42:05.000000000 +0100
+++ nginx_upstream_check/ngx_http_upstream_check_module.c	2015-03-02 14:03:14.476959602 +0100
@@ -3991,9 +3991,9 @@
             continue;
         }
 
-        if ((ngx_memcmp(addr->sockaddr, peer_shm->sockaddr, addr->socklen) == 0)
-            && (ngx_strncmp(upstream_name->data, peer_shm->upstream_name->data,
-                            upstream_name->len) == 0)) {
+        if (ngx_memcmp(addr->sockaddr, peer_shm->sockaddr, addr->socklen) == 0
+            && upstream_name->len == peer_shm->upstream_name->len
+            && ngx_strncmp(upstream_name->data, peer_shm->upstream_name->data, upstream_name->len) == 0) {
             return peer_shm;
         }
     }