aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-01 15:59:39 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-02 11:42:08 +0100
commit52451fb96a5e2bbc0c05bb4d1dcc458d31e33144 (patch)
tree185ed201e51a7cac80c4872ba4f9664866988374
parent655f638bd8a5fd1a2856fedf287144c212721770 (diff)
downloadrspamd-52451fb96a5e2bbc0c05bb4d1dcc458d31e33144.tar.gz
rspamd-52451fb96a5e2bbc0c05bb4d1dcc458d31e33144.zip
Add port definition to URL.
-rw-r--r--src/libserver/url.c2
-rw-r--r--src/libserver/url.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/libserver/url.c b/src/libserver/url.c
index 5c2bc7437..0184453da 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;
}
diff --git a/src/libserver/url.h b/src/libserver/url.h
index ce8154211..1faead3f2 100644
--- a/src/libserver/url.h
+++ b/src/libserver/url.h
@@ -11,11 +11,11 @@ struct mime_text_part;
struct rspamd_url {
gchar *string;
gint protocol;
+ guint port;
gchar *user;
gchar *password;
gchar *host;
- gchar *port;
gchar *data;
gchar *query;
gchar *fragment;