From: Vsevolod Stakhov Date: Wed, 1 Jul 2015 14:59:39 +0000 (+0100) Subject: Add port definition to URL. X-Git-Tag: 0.9.9~17 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=52451fb96a5e2bbc0c05bb4d1dcc458d31e33144;p=rspamd.git Add port definition to URL. --- 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;