]> source.dussan.org Git - rspamd.git/commitdiff
Add port definition to URL.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 1 Jul 2015 14:59:39 +0000 (15:59 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 1 Jul 2015 14:59:39 +0000 (15:59 +0100)
src/libserver/url.c
src/libserver/url.h

index 7efc7cd2671e7db29d920f6eab739c1b97f4512b..0373f23ec4661b8dbd59d3e01b60e12e85c00f63 100644 (file)
@@ -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;
        }
index ce81542116b57b5e7960227f83ff7875cbc9b308..1faead3f2d7ea969bb0f9438a2178845a14bfa66 100644 (file)
@@ -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;