diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-01 15:59:39 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-01 15:59:39 +0100 |
commit | 4f5967972210be316822b8f74e39c80dbd88e12f (patch) | |
tree | 4f357d441b4471353c158b67d2a15e7f90ad6864 /src/libserver/url.c | |
parent | fc8a07daabc8d624d21a20437974a1a13a2a097e (diff) | |
download | rspamd-4f5967972210be316822b8f74e39c80dbd88e12f.tar.gz rspamd-4f5967972210be316822b8f74e39c80dbd88e12f.zip |
Add port definition to URL.
Diffstat (limited to 'src/libserver/url.c')
-rw-r--r-- | src/libserver/url.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libserver/url.c b/src/libserver/url.c index 7efc7cd26..0373f23ec 100644 --- a/src/libserver/url.c +++ b/src/libserver/url.c @@ -1092,6 +1092,8 @@ rspamd_url_parse (struct rspamd_url *uri, gchar *uristring, gsize len, } } + uri->port = u.port; + if (!uri->hostlen) { return URI_ERRNO_BAD_FORMAT; } |