current filters.c,1.204,1.205
Fabian Keil <[email protected]> Sun, 04 Jun 2017 14:42:56 +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-serv23120
Modified Files:
filters.c
Log Message:
Let sockaddr_storage_to_ip() assert that addr isn't NULL
Calling the function with a NULL pointer is unreasonable,
we currently don't do it (intentionally) and shouldn't start
to do it (intentionally) in the future.
Index: filters.c
===================================================================
RCS file: /cvsroot/ijbswa/current/filters.c,v
retrieving revision 1.204
retrieving revision 1.205
diff -C2 -d -r1.204 -r1.205
*** filters.c 8 Mar 2017 13:13:18 -0000 1.204
--- filters.c 4 Jun 2017 14:42:54 -0000 1.205
***************
*** 113,120 ****
in_port_t **port)
{
! if (NULL == addr)
! {
! return(-1);
! }
switch (addr->ss_family)
--- 113,117 ----
in_port_t **port)
{
! assert(NULL != addr);
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