mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 16:57:00 +08:00
Renamed proc_search_ip() to proc_search_single_ip()
This better reflects the purpose of the function and will prevent misuse.
This commit is contained in:
@@ -756,7 +756,7 @@ int sfd = -1;
|
||||
if (match_ip_only == 0) {
|
||||
proc_to_send = proc_search_dtls_id(s, session_id, session_id_size);
|
||||
} else {
|
||||
proc_to_send = proc_search_ip(s, &cli_addr, cli_addr_size);
|
||||
proc_to_send = proc_search_single_ip(s, &cli_addr, cli_addr_size);
|
||||
}
|
||||
|
||||
if (proc_to_send != 0) {
|
||||
|
||||
@@ -133,7 +133,9 @@ struct find_ip_st* c2 = _c2;
|
||||
return 0;
|
||||
}
|
||||
|
||||
struct proc_st *proc_search_ip(struct main_server_st *s,
|
||||
/* returns a result only if there is a single IP matching
|
||||
*/
|
||||
struct proc_st *proc_search_single_ip(struct main_server_st *s,
|
||||
struct sockaddr_storage *sockaddr,
|
||||
unsigned sockaddr_size)
|
||||
{
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
#include <ccan/hash/hash.h>
|
||||
#include <main.h>
|
||||
|
||||
struct proc_st *proc_search_ip(struct main_server_st *s,
|
||||
struct proc_st *proc_search_single_ip(struct main_server_st *s,
|
||||
struct sockaddr_storage *sockaddr,
|
||||
unsigned sockaddr_size);
|
||||
struct proc_st *proc_search_dtls_id(struct main_server_st *s, const uint8_t *id, unsigned id_size);
|
||||
|
||||
Reference in New Issue
Block a user