From ed7ecf0d80246dc047676cfeb5f1726c678eb01b Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 5 Feb 2019 14:37:22 +0000 Subject: [Minor] Core: Allow inet addresses to be parsed using memory pool --- src/libutil/addr.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/libutil/addr.h') diff --git a/src/libutil/addr.h b/src/libutil/addr.h index 3aa24bb1c..46b705a4b 100644 --- a/src/libutil/addr.h +++ b/src/libutil/addr.h @@ -112,6 +112,17 @@ gboolean rspamd_parse_inet_address (rspamd_inet_addr_t **target, const char *src, gsize srclen); +/** + * Use memory pool allocated inet address + * @param src + * @param srclen + * @param pool + * @return + */ +rspamd_inet_addr_t* rspamd_parse_inet_address_pool (const char *src, + gsize srclen, + rspamd_mempool_t *pool); + /** * Returns string representation of inet address * @param addr -- cgit v1.2.3