Add free_connect_ports_list().
Michael
This commit is contained in:
parent
4c0a4d985f
commit
fa073543c4
@ -67,3 +67,11 @@ int check_allowed_connect_ports (int port, vector_t connect_ports)
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Free a connect_ports list.
|
||||||
|
*/
|
||||||
|
void free_connect_ports_list (vector_t connect_ports)
|
||||||
|
{
|
||||||
|
vector_delete (connect_ports);
|
||||||
|
}
|
||||||
|
@ -26,5 +26,6 @@
|
|||||||
|
|
||||||
extern void add_connect_port_allowed (int port, vector_t *connect_ports);
|
extern void add_connect_port_allowed (int port, vector_t *connect_ports);
|
||||||
int check_allowed_connect_ports (int port, vector_t connect_ports);
|
int check_allowed_connect_ports (int port, vector_t connect_ports);
|
||||||
|
void free_connect_ports_list (vector_t connect_ports);
|
||||||
|
|
||||||
#endif /* _TINYPROXY_CONNECT_PORTS_ */
|
#endif /* _TINYPROXY_CONNECT_PORTS_ */
|
||||||
|
Loading…
Reference in New Issue
Block a user