From: Christos Tsantilas Date: Fri, 4 Nov 2016 17:05:48 +0000 (+0200) Subject: Minor polishing fixes inside tunnelPeerSelectComplete function X-Git-Tag: SQUID_4_0_17~42 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c8d6111d17732221d1c192b52c978a00ffc1cc0f;p=thirdparty%2Fsquid.git Minor polishing fixes inside tunnelPeerSelectComplete function --- diff --git a/src/tunnel.cc b/src/tunnel.cc index 3d0603b3ca..8c80693d56 100644 --- a/src/tunnel.cc +++ b/src/tunnel.cc @@ -1199,7 +1199,7 @@ tunnelPeerSelectComplete(Comm::ConnectionList *peer_paths, ErrorState *err, void TunnelStateData *tunnelState = (TunnelStateData *)data; bool bail = false; - if (peer_paths == NULL || peer_paths->size() < 1) { + if (!peer_paths || peer_paths->empty()) { debugs(26, 3, HERE << "No paths found. Aborting CONNECT"); bail = true; }