From e7f03b4937a817d84254fda423879fe8a25d57b8 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Wed, 10 Oct 2012 13:57:33 +1300 Subject: [PATCH] Fix using assignment as a condition without parentheses --- src/ipcache.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ipcache.cc b/src/ipcache.cc index 08768200ee..dba1ce0734 100644 --- a/src/ipcache.cc +++ b/src/ipcache.cc @@ -434,7 +434,7 @@ ipcacheParse(ipcache_entry *i, const char *inbuf) memset(i->addrs.bad_mask, 0, sizeof(unsigned char) * ipcount); for (j = 0, k = 0; k < ipcount; ++k) { - if ( i->addrs.in_addrs[j] = A[k] ) + if ((i->addrs.in_addrs[j] = A[k])) ++j; else debugs(14, DBG_IMPORTANT, "ipcacheParse: Invalid IP address '" << A[k] << "' in response to '" << name << "'"); -- 2.47.3