diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-06-11 14:49:10 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-06-11 14:49:10 +0100 |
commit | 6b07a361d0f9a97ea2734add840c115e1dd183fd (patch) | |
tree | 5566dfea8f7886e48c7ca2584bf7a9ffb735f5fc /contrib/librdns/rdns.h | |
parent | 0e654a69f908ae3abe19663dc192f1dbc45d8ed0 (diff) | |
download | rspamd-6b07a361d0f9a97ea2734add840c115e1dd183fd.tar.gz rspamd-6b07a361d0f9a97ea2734add840c115e1dd183fd.zip |
[Minor] Improve fake names processing
Diffstat (limited to 'contrib/librdns/rdns.h')
-rw-r--r-- | contrib/librdns/rdns.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/librdns/rdns.h b/contrib/librdns/rdns.h index 545d9421f..cd4094d45 100644 --- a/contrib/librdns/rdns.h +++ b/contrib/librdns/rdns.h @@ -221,6 +221,8 @@ struct rdns_request_name { unsigned int len; }; +#define MAX_FAKE_NAME 1000 + /* * RDNS API */ @@ -327,7 +329,7 @@ void rdns_resolver_register_plugin (struct rdns_resolver *resolver, * Add a fake reply for a specified name * @param resolver * @param type - * @param name + * @param name (must not be larger than MAX_FAKE_NAME) * @param reply */ void rdns_resolver_set_fake_reply (struct rdns_resolver *resolver, |