current filters.c,1.205,1.206
Fabian Keil <[email protected]> Sun, 04 Jun 2017 14:43:12 +0000
| Newsgroups | gmane.comp.web.privoxy.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/ijbswa/current
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv23194
Modified Files:
filters.c
Log Message:
Let sockaddr_storage_to_ip() assert that the address family is AF_INET or AF_INET6
Privoxy currently doesn't support any other address families
so there's no need to pretent to handle them.
Index: filters.c
===================================================================
RCS file: /cvsroot/ijbswa/current/filters.c,v
retrieving revision 1.205
retrieving revision 1.206
diff -C2 -d -r1.205 -r1.206
*** filters.c 4 Jun 2017 14:42:54 -0000 1.205
--- filters.c 4 Jun 2017 14:43:10 -0000 1.206
***************
*** 114,117 ****
--- 114,118 ----
{
assert(NULL != addr);
+ assert(addr->ss_family == AF_INET || addr->ss_family == AF_INET6);
switch (addr->ss_family)
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot