Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/lavabit/magma.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLadar Levison <ladar@lavabit.com>2017-04-07 01:58:13 +0300
committerLadar Levison <ladar@lavabit.com>2017-04-07 01:58:13 +0300
commitd3f27275db0eba161ce2e46b8535df96b35b03c7 (patch)
tree24dcd4e396b41eaaf298210d2733cf48fba4fd41 /check/magma/servers
parentab5389a1999fafc43b781dbd9133b2a00ad9d1b5 (diff)
Moved the IP checks to core, and created stubs for the local/priv tests.
Several of the IP functions were also renamed so they conform with the current naming convention. Specifically ip_str_addr() became ip_addr_st() and ip_address_equal() became ip_addr_eq().
Diffstat (limited to 'check/magma/servers')
-rw-r--r--check/magma/servers/smtp/checkers_check.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/check/magma/servers/smtp/checkers_check.c b/check/magma/servers/smtp/checkers_check.c
index 2b96f48d..a031707a 100644
--- a/check/magma/servers/smtp/checkers_check.c
+++ b/check/magma/servers/smtp/checkers_check.c
@@ -24,7 +24,7 @@ bool_t check_smtp_checkers_greylist_sthread(stringer_t *errmsg) {
con.smtp.mailfrom = NULLER("check@example.com");
con.network.reverse.ip = mm_alloc(sizeof(ip_t));
- ip_str_addr("127.0.0.1", con.network.reverse.ip);
+ ip_addr_st("127.0.0.1", con.network.reverse.ip);
if (!(addr = con_addr_reversed(&con, addr)) ||
st_sprint(key, "magma.greylist.%lu.%.*s", prefs.usernum, st_length_int(addr), st_char_get(addr)) <= 0) {