X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=gateway.c;h=64ba52364dd1010a93ece0b915bd909b106fde5b;hp=03e56ee35b50cbb329e1f228c7e0f3d0582f2d7f;hb=32ac1bc634d600e8f788a4e49a634d598f5dd021;hpb=d01bb4028a9d19a62672a8d7d8d13f09ae270851 diff --git a/gateway.c b/gateway.c index 03e56ee3..64ba5236 100644 --- a/gateway.c +++ b/gateway.c @@ -7,7 +7,7 @@ * or SOCKS5 proxy). * * Copyright : Written by and Copyright (C) 2001-2017 the - * Privoxy team. http://www.privoxy.org/ + * Privoxy team. https://www.privoxy.org/ * * Based on the Internet Junkbuster originally written * by and Copyright (C) 1997 Anonymous Coders and @@ -218,6 +218,7 @@ void remember_connection(const struct reusable_connection *connection) return; } + assert(slot < SZ(reusable_connection)); assert(NULL != connection->host); reusable_connection[slot].host = strdup_or_die(connection->host); reusable_connection[slot].sfd = connection->sfd;